cancel
Showing results for 
Search instead for 
Did you mean: 

How to get payment_source and use it for future transaction ?

Options
Go to solution
hieudien
Contributor
Posted on

Hi admin, @MTS_Justin 

I want to get and store the payment_source for future transactions but can not.

There is no payment_sourrce field in the SDK response.

I'm working with PayPal sandbox via this SDK: https://github.com/paypal/Checkout-NodeJS-SDK
Follow this document, the get order detail response includes payment_source field: https://developer.paypal.com/docs/api/orders/v2/#orders_get

See that it need to pass a query parameter, but the provided SDK does not support passing query param: https://github.com/paypal/Checkout-NodeJS-SDK/blob/develop/lib/orders/ordersGetRequest.js

Additional question: after store payment_source, can I use it for future transactions? as create new order/ authorize ... ?

Please help. Thank you.

Query parameters

  • fields

    string

    A comma-separated list of fields that should be returned for the order. Valid filter field is payment_source.

     

1 ACCEPTED SOLUTION

Accepted Solutions
Solved

How to get payment_source and use it for future transaction ?

Options
Go to solution
MTS_Justin
Moderator
Hello,

The ability to store card information (vault) and re-use for future transactions without requiring buyer approval is now depreciated and no longer available for new integrations.

See here :
https://developer.paypal.com/docs/integration/direct/payment-tokens

"Availability: This API is deprecated and is no longer supported. For an alternative solution, we suggest accepting credit card payments using Braintree Direct" : https://www.braintreepayments.com/products/braintree-direct

Thanks !

Was my post helpful? If so, please give me a kudos!

View solution in original post

4 REPLIES 4
Solved

How to get payment_source and use it for future transaction ?

Options
Go to solution
MTS_Justin
Moderator
Hello,

The ability to store card information (vault) and re-use for future transactions without requiring buyer approval is now depreciated and no longer available for new integrations.

See here :
https://developer.paypal.com/docs/integration/direct/payment-tokens

"Availability: This API is deprecated and is no longer supported. For an alternative solution, we suggest accepting credit card payments using Braintree Direct" : https://www.braintreepayments.com/products/braintree-direct

Thanks !

Was my post helpful? If so, please give me a kudos!

How to get payment_source and use it for future transaction ?

Options
Go to solution
hieudien
Contributor

Thanks for your help.

How to get payment_source and use it for future transaction ?

Options
Go to solution
JakeCo
Contributor

What about countries that are not supported by Braintree?

Is there any solution for saving the payment method and re-using it in Paypal?
My use case involves both subscriptions and standard checkout.

Thanks 

How to get payment_source and use it for future transaction ?

Options
Go to solution
ikwc
New Community Member

Hi,

 

Is there no changes to this setup? Is it still not possible to add a vaulting functionality for new integrations unless we go with Braintree?

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.