Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Get3dsAvailability into BinLookup directory #103

Merged
merged 14 commits into from
Mar 13, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions src/Adyen/Service/BinLookup.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php

namespace Adyen\Service;

class BinLookup extends \Adyen\Service
{
/**
* @var ResourceModel\BinLookup\Get3dsAvailability
*/
protected $_get3dsAvailability;
fabricioblz marked this conversation as resolved.
Show resolved Hide resolved

/**
* Payment constructor.
*
* @param \Adyen\Client $client
* @throws \Adyen\AdyenException
*/
public function __construct(\Adyen\Client $client)
{
parent::__construct($client);
$this->get3dsAvailability = new \Adyen\Service\ResourceModel\BinLookup\Get3dsAvailability($this);
}


/**
* @param $params
* @return mixed
* @throws \Adyen\AdyenException
*/
public function get3dsAvailability($params)
{
$result = $this->get3dsAvailability->request($params);
return $result;
}
}

fabricioblz marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

namespace Adyen\Service\ResourceModel\BinLookup;

class Get3dsAvailability extends \Adyen\Service\AbstractResource
{
/**
* @var string
*/
protected $_endpoint;
fabricioblz marked this conversation as resolved.
Show resolved Hide resolved

/**
* Include applicationInfo key in the request parameters
*
* @var bool
*/
protected $allowApplicationInfo = true;
fabricioblz marked this conversation as resolved.
Show resolved Hide resolved

/**
* Authorise constructor.
*
* @param \Adyen\Service $service
*/
public function __construct($service)
{
$this->_endpoint = $service->getClient()->getConfig()->get('endpoint') . '/pal/servlet/BinLookup/get3dsAvailability';
fabricioblz marked this conversation as resolved.
Show resolved Hide resolved
parent::__construct($service, $this->_endpoint, $this->allowApplicationInfo);
fabricioblz marked this conversation as resolved.
Show resolved Hide resolved
}
}

fabricioblz marked this conversation as resolved.
Show resolved Hide resolved