Trying to Capture a payment with postman and getting 415Unsupported Media Type. https://api.sandbox.paypal.com/v2/checkout/orders/******/capture I have set the body to raw/json and it is not working. I have no Body data so I tried setting it to none but that did not work also. Does anyone have any ideas
... View more
Thanks for your reply. (I added the image 3 times and it keeps getting removed ) I ended up contacting Merchant Technical Support and I think he was able to replicate the Issue using my account as it has now been raised with the engineering team so I hope they can fix it. I am not able to use the JavaScript code in the project I am trying to add PayPal support to as it is in Salesforce so only the rest api will work. We have heard there is a managed package coming for B2C Salesforce Lighting Commerce Server and that would be the ideal way to do this but there is no date for it yet. Thanks
... View more
i login and it takes me here: then press "Continue" and it just takes me back to the same page. could this be an issue with the way my test store is configured? Is there something wrong with the rest of my JSON?? I am at a loss
... View more
Thanks for your reply. This is what I am currently sending {
"purchase_units": [{
"amount": {
"value": "1.00",
"currency_code": "CAD"
}
}
],
"intent": "CAPTURE",
"application_contextobject": {
"user_action": "PAY_NOW",
"return_url": "https://ptsv2.com/t/bjyml-1628689960/post",
"cancel_url": "https://ptsv2.com/t/bjyml-1628689960/post"
}
}
... View more
I am trying to to test an order I made with the API. When I go to the Accept URL returned from the API and log into the site as a test account from my sandbox it takes me to the "Test Store" page then I select my "Pay with" as "PayPal balance" then press the "Continue" button is just keeps redirecting me to "Test Store" I assume this should be going somewhere else.... Can anyone tell me what I may be missing? Thanks
... View more
Hey Guys, I am looking at the API and did not realize there was a V2 of the api and started to develop for V1 and i was able to get a token and create a payment etc via postman. if i am correct the flow should be something like: Get Token Create Payment Approve Payment (user logs into PayPal and authorizes it) Execute Payment (Payment is processed) this is what I was following paypal-payments But am not sure what are the steps i need to do with V2. I just want to have a user log into paypal to finish it and get a success/fail response back. I am using the API directly and not one of the SDK's as this is being done in Salesforce. Any help with the order of operations would be great, and any other help hint. BTW, i all ready have it getting the token in Salesforce but it is from the v1 api "/v1/oauth2/token" Thanks
... View more