thephpleague / omnipay

A framework agnostic, multi-gateway payment processing library for PHP 5.6+
http://omnipay.thephpleague.com/
MIT License
5.92k stars 930 forks source link

Omnipay says Buckaroo is supported gateway but it is not. #312

Open makasim opened 8 years ago

makasim commented 8 years ago

$factory->getSupportedGateways() contains Buckaroo in the list, but when I try to create it I am getting an exception:

RuntimeException in GatewayFactory.php line 105:
Class '\Omnipay\Buckaroo\Gateway' not found

There are some other gateways which do not work: ['Buckaroo', 'Alipay Bank', 'AliPay Dual Func', 'Alipay Express', 'Alipay Mobile Express', 'Alipay Secured', 'Alipay Wap Express', 'Cybersource', 'DataCash', 'Ecopayz', 'Neteller', 'Pacnet', 'PaymentSense', 'Realex Remote', 'SecPay (PayPoint.net)', 'Sisow', 'Skrill', 'YandexMoney', 'YandexMoneyIndividual']

Question: Can I use gateway names returned by getSupportedGateways method as a type for create method. Is this right way to use it?

greydnls commented 8 years ago

Buckaroo specifically has multiple gateways, so you need to do create the gateway like this:

Omnipay::create('Buckaroo_Ideal')

Also, you can only use Omnipay::create on official omnipay gateways. It does not work for third party gateways, which a great many of the ones you listed are.

makasim commented 8 years ago

I want to get the list of supported gateways, using this list I can create a gateway later, when user choose one. But I cannot simply use getSupportedGateways because it returns something which factory create method does not accept.

Given omnipay gateway type Buckaroo or class is not supported. Supported: AuthorizeNet_AIM, AuthorizeNet_SIM, Buckaroo, Buckaroo_Ideal, Buckaroo_PayPal, CardSave, Coinbase, Dummy, Eway_Rapid, FirstData_Connect, GoCardless, Manual, Migs_ThreeParty, Migs_TwoParty, Mollie, MultiSafepay, Netaxept, NetBanx, PayFast, Payflow_Pro, PaymentExpress_PxPay, PaymentExpress_PxPost, PayPal_Express, PayPal_Pro, Pin, SagePay_Direct, SagePay_Server, SecurePay_DirectPost, Stripe, TargetPay_Directebanking, TargetPay_Ideal, TargetPay_Mrcash, TwoCheckout, WorldPay, Alipay Bank, AliPay Dual Func, Alipay Express, Alipay Mobile Express, Alipay Secured, Alipay Wap Express, Cybersource, DataCash, Ecopayz, Neteller, Pacnet, PaymentSense, Realex Remote, SecPay (PayPoint.net), Sisow, Skrill, YandexMoney, YandexMoneyIndividual
makasim commented 8 years ago

And both Buckaroo_Ideal and Buckaroo in the list.

makasim commented 8 years ago

I have to skip them https://github.com/Payum/Payum/blob/master/src/Payum/Core/PayumBuilder.php#L577

greydnls commented 8 years ago

I removed buckaroo from the list.

makasim commented 8 years ago

Thanks @kayladnls. What about the reset (see above), they are not working too.

judgej commented 8 years ago

AuthorizeNet_DPM not in the list? I'll have to follow that up.