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

2 REPLIES 2
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

How to get payment_source and use it for future transaction ?

Options
Go to solution
hieudien
Contributor

Thanks for your help.

Haven't Found your Answer?

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