Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
455 views
in Technique[技术] by (71.8m points)

node.js - Accept credit card and debit card payment using paypal in nodejs rest api

I have used paypal-rest-sdk in my code the payment using paypal login working smoothly but now I want to pay using credit card and debit card without login to paypal.

I have also on the "PayPal Account Optional" to "on" stil I am not able to pay with credit and debit cards

Below is the image of login window of paypal. I want to pay with pay with debit card and credit card button.

I have create two routes for create payment and execute payment. I have used nodejs for back-end and angular8 for front-end.

Can you please help me here

enter image description here

question from:https://stackoverflow.com/questions/65841395/accept-credit-card-and-debit-card-payment-using-paypal-in-nodejs-rest-api

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Use this front-end for the approval: https://developer.paypal.com/demo/checkout/#/pattern/server

Pair it with two backend routes on your server using the current Checkout-NodeJS-SDK (not PayPal-Node-SDK, which is a deprecated REST SDK).

You'll need two routes, one for 'Create Order' and one for 'Capture Order', documented here.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...