Click here to Skip to main content
15,881,864 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Am busy with a shopping app here so am having issues with the checkout of items, like when the user needs to make a payment, so how do I incorporate PayPal to my application?


What I have tried:

I have tried using the sandbox but still it gives me issues(errors)
Posted
Comments
Suvendu Shekhar Giri 16-Sep-19 15:28pm    
Not enough information shared so that others can help.
Please share the problematic code snippet.
MadMyche 16-Sep-19 15:37pm    
Based on the most excellent description of the precise problem, I am 99% the error is in your code
Simphiwe_Magubane 16-Sep-19 16:06pm    
What am actually trying to do is to perform a payment with 3 steps:

1) Order Page with PayNow Button for users to click

2) PayPal Payment

3) Redirect to "Payment completed page"

What I want to complete is to have an ID going from step 1 to 3. What I tried to do is to insert this field into the "custom" variable like:


After the PayPal payment, PayPal redirect me to my page:

http://www.mysite.cm/tx=blalba?aaaa

With this URL there is no custom Field. If from API, I contact PayPal to have the sale details, I get nothing related to my custom Field.




Simphiwe_Magubane 16-Sep-19 16:12pm    
OK so here is the problem am having

paypal.Button.render({
//Configure environment
env: 'production', // To test, set to `sandbox`
payment: function () {
// Set up the payment here, when the buyer clicks on the button
},
onAuthorize: function (data, actions) {
// Call your server to execute the payment
if (error === 'INSTRUMENT_DECLINED') {
actions.restart();
}
}
}, '#paypal-button');
F-ES Sitecore 17-Sep-19 5:29am    
Integrating paypal is a huge task, if you go to their website there are 50 page PDF files on what is needed. I'm not sure what kind of help you are expecting from us? You haven't even said what integration option you are using so how can anyone possibly help you? Go to paypal's site and go through their extensive documentation. This is not a trivial task.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900