Accept credit card and debit card payment using paypal in nodejs rest api

99
January 23, 2021, at 3:10 PM

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

Answer 1

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.

READ ALSO
How to extract this text from this Website Scraping? BeatifulSoup

How to extract this text from this Website Scraping? BeatifulSoup

I'm trying to extract the string "No disponble" of this product, but im getting "none" or attribute text dont exists:

88
How reorganize a group of div , pure JavaScript

How reorganize a group of div , pure JavaScript

Hello I'm a beginner and I'm trying to manipulate the DOM by moving existing divsHow to make "for" loops on "

61
Rendering multiple tables are same time causes issue on display in data tables(UI)

Rendering multiple tables are same time causes issue on display in data tables(UI)

Have multiple datatables on same page, and every table have different API's for fetching the dataIf one of the API is not returning the data, both the tables data is not displaying in the UI and getting error in console like

97
How to save numpy arrays with pymysql?

How to save numpy arrays with pymysql?

Is there a way to save numpy arrays (ideally in compressed form) into a MySQL database with pymysql? I understand how to save numbers and strings, but how do query strings work with byte objects? Thanks!

101