Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm using the build in PayPal payment gateway. I have two checkout flows in my site therefore I can't hardcode the return URL in the PayPal settings. I've set this to go to an Umbraco suface controller.
I want to be able to get the invoice key so I can look this up in my controller and then pass it to my View.
I can see that PayPal does return this information like this:
and then performs a 302 redirect to the value of the Return URL field in Merchello's settings.
Is there anyway to get these values or pass these onto my controller?
For anybody who is interested I managed to get around this storing in the invoice key in ExtendedData before I redirect the user off to PayPal like so:
I then retrieve on my view that I return the success to like :
var invoiceKey = customerContext.GetValue("invoiceKey");
Hope that helps somebody in the future
Yep - your basically storing the value in the encrypted Merchello cookie. That's a perfect use for it. This will also help with your receipt page.
On which view are setting that invoice key?
Can you be more specific please?
I usually set it it in the controller:
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted