sahilrajput03

PayPal

PayPal Docs are just awesome to read. ~Sahil

Quick Links:

Card Used in Postman for testing:

image

Tax Calcuation on items

image

Getting client id and secret

Account Settings > Account access > API access > Update > Manage REST API apps credentials

Enable Fetch Transaction permission

To be able to fetch transaction from my seller account I had to change this setting using my PayPal sandbox developer account**

image

Geting list of payments processed for a given subscription_id

We can get a list of transactions made for a given subscription by using List transactions for subscription API (we pass a subscription_id as param) in postman. We can use this showing all the payment history for a given person if we store a subscription_id for each user in the database.

Fetching transactions and especially subscription txns?

Getting the subscription txns and their respective ids from the list of transactions we get by List transactions REST API of postman collection

Source - API DOCS: Click here

image

image

image

Paypal Doesn’t support proration automatically

Source - Docs: Click here

Other links to help you prorate:

image

When creating a subscription

When creating a subscription you can give the start_date to set the start date and time for this subscription. Also, if you just want the subscription to start immeditely you can simply delete that field from the payload of the request and in the response you’ll see the current time automatically set by the paypal server.

image

There is no way to un-cancel a request

image

PayPal Webhook Simulator

Please use this site to generate a free url which you can use to test webhook on paypal.

More on cards

Credit Card Generator, How to use Failed Cards, More 3DS Payments and More Test Accounts.

image

image

image

image

Sandbox Details

// Sahil Personal Account (Sandbox Details)
// const clientId =  'AZxr-cT_Indgclkxvqr_yUgFqWiYUJpHLmOKwrucdOseQsFzSrfsCRLaBNZKH9rT5RGCAFK4QgppxKGS'
// const planIds = {
// 	one: 'P-1U585596S70968643MONXJHI',
// 	three: 'P-3J697311GS257702PMONXJIQ',
// 	six: 'P-81C6483981287853TMONXJJQ',
// }

Error: Things don't appear to be working at the moment. Please try again later.

Click here