How to get payment_source and use it for future transaction ?

hieudien
Contributor
Contributor

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.

     

Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

MTS_Justin
Moderator
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

Login to Me Too
4 REPLIES 4
Solved

MTS_Justin
Moderator
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!
Login to Me Too

hieudien
Contributor
Contributor

Thanks for your help.

Login to Me Too

JakeCo
Contributor
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 

Login to Me Too

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?

Login to Me Too

Haven't Found your Answer?

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