-
Notifications
You must be signed in to change notification settings - Fork 168
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
How can I download payment methods? #195
Comments
https://github.com/thephpleague/omnipay-stripe#stripe-payment-intents You are missing |
With 'paymentMethod' I have this same. How can i download payment methods? |
https://github.com/thephpleague/omnipay-stripe#stripe-payment-intents
|
How can I download payment methods in php? |
@trendak i think you are confusing some concepts here. First you should read Stripe docs regarding overall payment flow and how PaymentIntents works (and what is "Stripe payment method")
If you ask if you will be able to reuse "Stripe payment method" in gateway other than Stripe then the answer is no 😃 |
@domis86 I think he misunderstood my questions. I am doing a micro service based on another one and it must contain the same functionality. Is it possible to download payment methods in backend? After selecting the payment method, e.g. a bank, I would like the user to be redirected to his website, and in the case of a card like here:
That's not what I meant, it would be weird. I am asking if omnipay has such a method. So that I could download payment methods regardless of the gateway. I want to do a stripe now but want the code in backend to be the same for another gateway. |
OmniPay has a limited set of functionality as standard - authorise, pay, void, fetch payment details, and a few helpers. That's just about it. Any driver for a specific payment gateway can extend this with gateway-specific features. Be aware that those gateway features won't be portable across other gateway types. |
I only have one question. Does omnipay have a payment method download function? |
can you define what you mean by "payment method download" ? |
@trendak It sounds like you want to get the payment method "card number and security details" and use it on another payment gateway?
That's fraud. You're not going to be able to download the payment method, you can poll stripe for the type of card used and the last four digits, but no payment gateway is going to give you the whole details of the card used. # |
I am doing a micro service.
How can i download payment methods?
I don't know if I understood correctly, but when I do authorization it should redirect to the payment gateway.
When i make:
$response = $gateway->authorize([ 'amount' => '10.00', 'currency' => 'USD', 'description' => 'This is a test purchase transaction.', 'returnUrl' => 'http://test.test/web/gateway-return', 'confirm' => true, ])->send();
Then i have error: The source parameter is required
The text was updated successfully, but these errors were encountered: