thephpleague / omnipay-buckaroo

Buckaroo driver for the Omnipay PHP payment processing library
MIT License
13 stars 30 forks source link

Add support for Mastercard, and American express #13

Closed silvano-a closed 8 years ago

silvano-a commented 8 years ago

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 extending CreditCardGateway