Razor Store doesnt works with paypal payment method
Hi ,
I have tried to use paypal sandbox account for payment method, but instead of navigating to paypal, it goes to confirmation page as coded in the preview.cshtml
if (request.HttpMethod == "POST" && request.Form.AllKeys.Any(x => x == "send-order"))
{
TransactionLibrary.ExecuteBasketPipeline();
TransactionLibrary.Checkout();
HttpContext.Current.Response.Redirect("Confirmation.aspx");
}
I have followed the paypal integration manual and included all the required certificates with the modification of paypal config, and pipeline set for paypal is checkout.
Can anyone provide any assistance , where i am getting it wrong , thanks
You can change the line TransactionLibrary.Checkout() to TransactionLibrary.RequestPayments() to initiate the payment flow. I'm looking into updating the store package to have it work out of the box.
Yeh I have followed the blog of integrating paypal with ucommerce, it works though on my old website which is uses xslt version of umbraco, however the razor store doesnt navigates to paypal site. The test site is on testWebsite , you can go through the payment flow , it takes you to confirmation page instead of paypal.
By the way which version of uCommerce 3 are you running specifically? The RequestPayments API was added in build 12286. The original build didn't have it.
Where can i find the request payment api , i am still waiting for paypal problem to be resolved. The ucommerce version i am using is uptodate , I dont if i have to upgrade the razor store , coz i have sen you have added some changes on bitbucket site for razor store package.
In the preview.cshtml macro you want to change the line of code
TransactionLibrary.Checkout() to TransactionLibrary.RequestPayments()
and also (I forgot this step the first time around) remove the call to Response.Redirect("Confirmation.aspx"). The payment provider will redirect internally, but it only happens if no other redirects are present.
Thanks for the new patch release for ucommerce. I have updated the ucommerce and razor store, now its going to paypal and gets the payment and navigate to confirmation page without clearing the basket and sending confirmation email, but the issue is now i cant see any orders on the backend new order folder , i can see the payment in payment table with paymentstatusid to 10000001 which means its awaiting for some kind of authorisation , i checked my sandbox account and accepts the payment, still i cant see updates on the purchase order table.
Also when is the checkoutpipeline called , currenlty i cant find where this pipeline is called.
Upon further investigation it turns out that in this case PayPal only issues the IPN when the payment is approved in the PayPal back-end. This is typically due to config on the PayPal end of things.
Payment is accepted and approved in paypal but the basket is not converted to a purchase order when the user is taken from paypal back to the conformation screen.
I have not set any IPN settings up on the buyer account (I and using a standard payments account in the sandbox, not a payment pro account). Do I need to? I cant see any details of this on the tutorial http://www.publicvoid.dk/SetupUCommerceToIncludePayPalAsAPaymentMethod.aspx and also my website is not accesible from the internet (its on my local machine).
Here's what I know so far: The payment is created in the sandbox, but instead of getting the expected status of "Authorized" it lands in status "Pending". This happens regardless of the fact that any review options in PayPal are turned off or not.
I'm still trying to determine why the sandbox is behaving like that. No changes were made to the provider on our end.
I have just run my test again (to see if perhaps it was a snadbox glitch) but am still having the same issue.
The payment on the buyers and sellers account in the sandbox is showing as complete.
I dont fully understand how payment conformation is handled. Does paypal need to use IPN to tell my website the payment was successfull, or does the website issue a call to paypal to query the payment when the user is re-directed back to the website on the /conformation.aspx page?
I've got an updated version of the PayPal provider ready that you can try out. It's passed prelim internal testing. If you're interested please shoot me an e-mail at ssl AT ucommerce DOT dk.
Razor Store doesnt works with paypal payment method
Hi ,
I have tried to use paypal sandbox account for payment method, but instead of navigating to paypal, it goes to confirmation page as coded in the preview.cshtml
I have followed the paypal integration manual and included all the required certificates with the modification of paypal config, and pipeline set for paypal is checkout.
Can anyone provide any assistance , where i am getting it wrong , thanks
any one has done this yet ?
You can change the line TransactionLibrary.Checkout() to TransactionLibrary.RequestPayments() to initiate the payment flow. I'm looking into updating the store package to have it work out of the box.
I tried replacing TransactionLibrary.RequestPayments() with TransactionLibrary.Checkout()
Still no difference , it goes to confirmation page instead of paypal . Thanks
Is your PayPal method set up like described in Setup uCommerce to Include PayPal as a Payment Method?
Yeh I have followed the blog of integrating paypal with ucommerce, it works though on my old website which is uses xslt version of umbraco, however the razor store doesnt navigates to paypal site. The test site is on testWebsite , you can go through the payment flow , it takes you to confirmation page instead of paypal.
By the way which version of uCommerce 3 are you running specifically? The RequestPayments API was added in build 12286. The original build didn't have it.
I am using the latest version uCommerce 3.0.0.12306
Where can i find the request payment api , i am still waiting for paypal problem to be resolved. The ucommerce version i am using is uptodate , I dont if i have to upgrade the razor store , coz i have sen you have added some changes on bitbucket site for razor store package.
In the preview.cshtml macro you want to change the line of code
TransactionLibrary.Checkout() to TransactionLibrary.RequestPayments()
and also (I forgot this step the first time around) remove the call to Response.Redirect("Confirmation.aspx"). The payment provider will redirect internally, but it only happens if no other redirects are present.
I'm updating the store to reflect this.
I've uploaded the latest versions of uCommerce 3 and the Razor Store with the fixes I mentioned implemented.
Thanks for the new patch release for ucommerce. I have updated the ucommerce and razor store, now its going to paypal and gets the payment and navigate to confirmation page without clearing the basket and sending confirmation email, but the issue is now i cant see any orders on the backend new order folder , i can see the payment in payment table with paymentstatusid to 10000001 which means its awaiting for some kind of authorisation , i checked my sandbox account and accepts the payment, still i cant see updates on the purchase order table.
Also when is the checkoutpipeline called , currenlty i cant find where this pipeline is called.
Thanks
Upon further investigation it turns out that in this case PayPal only issues the IPN when the payment is approved in the PayPal back-end. This is typically due to config on the PayPal end of things.
Hi Soren / Mr A
I am having the same issue here.
Payment is accepted and approved in paypal but the basket is not converted to a purchase order when the user is taken from paypal back to the conformation screen.
I have not set any IPN settings up on the buyer account (I and using a standard payments account in the sandbox, not a payment pro account). Do I need to? I cant see any details of this on the tutorial http://www.publicvoid.dk/SetupUCommerceToIncludePayPalAsAPaymentMethod.aspx and also my website is not accesible from the internet (its on my local machine).
Thanks,
Adam
Hi Adam,
I'm looking into this issue.
Here's what I know so far: The payment is created in the sandbox, but instead of getting the expected status of "Authorized" it lands in status "Pending". This happens regardless of the fact that any review options in PayPal are turned off or not.
I'm still trying to determine why the sandbox is behaving like that. No changes were made to the provider on our end.
I'll be back when I know more.
Thanks Soren
I have just run my test again (to see if perhaps it was a snadbox glitch) but am still having the same issue.
The payment on the buyers and sellers account in the sandbox is showing as complete.
I dont fully understand how payment conformation is handled. Does paypal need to use IPN to tell my website the payment was successfull, or does the website issue a call to paypal to query the payment when the user is re-directed back to the website on the /conformation.aspx page?
Many thanks for your help and happy new year :)
Adam
Hi Adam,
I've got an updated version of the PayPal provider ready that you can try out. It's passed prelim internal testing. If you're interested please shoot me an e-mail at ssl AT ucommerce DOT dk.
Thanks.
With QA is complete the official release of uCommerce 3.0.313009 is available. Please let me know how you get on.
is working on a reply...