Checkout-NodeJS-SDK | Node.js SDK for Checkout RESTful APIs | REST library
kandi X-RAY | Checkout-NodeJS-SDK Summary
kandi X-RAY | Checkout-NodeJS-SDK Summary
Node.js SDK for Checkout RESTful APIs
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Build the Complete request body body
- Build request body body body
- Authorizes an order to approve user
- Create an Order with the given payment payload
- Rejects a payment with the given details .
- Create an Order Order payload
- Create an Order Order
- Capture authorization information .
- Stringify JSON .
- Create a access token for access token
Checkout-NodeJS-SDK Key Features
Checkout-NodeJS-SDK Examples and Code Snippets
Community Discussions
Trending Discussions on Checkout-NodeJS-SDK
QUESTION
I'm developing a website with Nuxt + Node + Express and I'm trying to implement PayPal. I'm using PayPal Node SDK and I created the files just as described in their Github page. I'm developing in my pc (so, localhost..) and using PayPal Sandbox.
The problem is: it works perfectly for the first time. I click the 'Buy' button in the frontend, I'm redirected to PayPal payment page, I pay using Sandbox account, then I'm redirect to my website again with the TOKEN in the URL. The output from the call to the backend API is 'COMPLETED'.
BUT, if I login with another user, clear browser cache or even change the browser, and try to BUY again it says that: "Order already captured". After a few hours I can buy again. The only thing that works is RESTARTING the server. I've checked if there's some cookies in the server with cookies-parser
but there isn't.
Call anyone help me understand why it happens?
Here is the files/code I used:
Created the paypal_controller.js
with:
ANSWER
Answered 2021-Jul-20 at 22:35On boot of the server the following gets initialised, so is the same order for every user:
QUESTION
I'd like to get a subscription information from the subscription API endpoint
/v1/billing/subscriptions
https://developer.paypal.com/docs/api/subscriptions/v1/#subscriptions
It requires an auth bearer token, and I don't want to spend weeks setting up an auth handler. Paypal's current repos doesn't support subscriptions endpoint (or most others TBH...): checkout SDK and payouts SDK
These probably have some auth wrapper but I'm struggling to determine how to use it to make fetch()
calls from my server to the subscriptions endpoint, does anyone have a solution they've used?
FYI: I'm using paypal smart buttons to create a subscription and then making an api call with subscription id to add details to user in DB
...ANSWER
Answered 2021-Feb-10 at 18:05I'm struggling to determine how to use it to make fetch() calls to the subscriptions endpoint, does anyone have a solution they've used?
Don't do that. Fetch calls should go to your server. Only your server should ever call subscription endpoints. There is no need for an auth handler, as the things you will be doing on the client side only require your clientID on the JS SDK line.
You may find this information useful: How do you know if a user has paid for a subscription
QUESTION
I am currently working on react js project where I need two main functionalities of Paypal one is to make payment and other is to make a refund on that payment ( sometimes partial refund on a subset of that payment).
I am following this sdk of the node.js implementation, https://github.com/paypal/Checkout-NodeJS-SDK
but I want to extract the transaction ID and token and such details which I am not able to find in this SDK.
I am just getting the order ID capture ID refund ID but not the transaction ID , so how do I get that ?
also , I am suggested to use smart payment buttons but if I am using the smart payment buttons, I am able to perform the checkout operation,but getting different set of details like
payment ID , payment token and I don't know how to perform the refund for that payment?
...ANSWER
Answered 2020-Jun-01 at 10:31A capture ID is a transaction ID.
As discussed in comments elsewhere, the confusion was that the buyer/sender has its own transaction ID.
(For every PayPal transaction, the sender and the receiver each have their own transaction ID)
QUESTION
I'm using PayPal Checkout API SDK and I successfully created an order using the smart buttons, so when the user click on the paypal button an order is created. Here's my code for the final capture:
...ANSWER
Answered 2020-Feb-14 at 19:39The Subscriptions API is newer and most SDKs don't support it yet (and if they do support billing plan calls, it's for an older, incompatible version, generally)
So you probably need to implement direct HTTPS API calls (no SDK) to create the necessary Product and Plan. All those curl calls you see in the documentation? Do the equivalent from node.
Then in the last step you pass the resulting plan object to the client-side SPB js.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Checkout-NodeJS-SDK
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page