Closed silvano-a closed 8 years ago
This PR will add the option to choose between 3 credit card providers.
usage : $request->setPaymentMethod('mastercard');
$request->setPaymentMethod('mastercard');
or
$gateway->purchase(['paymentMethod' => 'mastercard]');
$gateway->setPaymentMethod('mastercard');
supported methods:
if none of the currently supported payment methods is selected, there will be a fallback to
Brq_setrequestedservices = 'visa,mastercard,amex';
which redirects the user to a page where they will select supported creditcard provider they wish.
to make sure this functionality is only available for credit card, i created the buckaroo gateway. (src/BuckarooGateway.php)
src/BuckarooGateway.php
the Creditcard, Paypal, and iDeal gateways now extend BuckarooGateway , instead of extending CreditCardGateway
BuckarooGateway
CreditCardGateway
This PR will add the option to choose between 3 credit card providers.
usage :
$request->setPaymentMethod('mastercard');
or
$gateway->purchase(['paymentMethod' => 'mastercard]');
or
$gateway->setPaymentMethod('mastercard');
supported methods:
if none of the currently supported payment methods is selected, there will be a fallback to
Brq_setrequestedservices = 'visa,mastercard,amex';
which redirects the user to a page where they will select supported creditcard provider they wish.
to make sure this functionality is only available for credit card, i created the buckaroo gateway. (
src/BuckarooGateway.php
)the Creditcard, Paypal, and iDeal gateways now extend
BuckarooGateway
, instead of extendingCreditCardGateway