Hi, I use the great Payapal express paiement provider. All is working good for transmission, I can see my transaction in the paypal sandbox. But after paying on paypal, the return URL look like this:
I take a look in the bazaar app and in the receiptController, the only get the invoice key lke that: CustomerContext.GetValue("invoiceKey"); But in my case the CustomerContext is null at this point.
How I can't decrypt or control the way papal return value?
Thanks
Where I can found the source of that controller?
I open the solution in the Merchello-1.6.1\Plugin\Payments\PayPal\src\Merchello.Plugin.Payments.PayPal folder but I can't found anything on the function "successPayement" thanks
EDIT: I am totally lost! The source code provided do not seam to correspond to the Paypalexpresss plugin 1.4.1 ?! In the source code we got a PayPalEpressCheckout.html in the Merchello.Paypal folder. Nothing like that in the 1.4.1 build.
Nobody use this paypal module? I just need to solve this to deploy to my client. Do Merchello have another working paypal provider that I can use instead?
// redirect to Site
var returnUrl = payment.ExtendedData.GetValue(Constants.ExtendedDataKeys.ReturnUrl);
var response = Request.CreateResponse(HttpStatusCode.Moved);
response.Headers.Location = new Uri(returnUrl.Replace("%INVOICE%", invoice.Key.ToString().EncryptWithMachineKey()));
Paypal Express payement return Invoice #
Hi, I use the great Payapal express paiement provider. All is working good for transmission, I can see my transaction in the paypal sandbox. But after paying on paypal, the return URL look like this:
I was thinking receiving the merchello invoice GUID to pass it to my receipt page (for now I use the one in the kitten sample merchello website).
In the paypal provider I use this setting: /receipt/?inv=%INVOICE%
Any suggestion?
The PayPal plugin was created by Scandia. I've pinged Nik Walberg and hopefully he can give a response.
Thanks
Jason
Hi Pierre, I will have one of the devs take a look.
Thanks!
Hi, looked at this and it appears the invoice key is encrypted. Please use one of the following methods to solve the issue in your install:
HI, I try the EncryptionHelper like this one: http://johnnycoder.com/blog/2008/07/03/c-encryption-decryption-helper-class/
But I got an exception {"Bad Data.\r\n"}
I take a look in the bazaar app and in the receiptController, the only get the invoice key lke that: CustomerContext.GetValue("invoiceKey"); But in my case the CustomerContext is null at this point.
How I can't decrypt or control the way papal return value? Thanks
I dig an little more, When the paiement is completed, the URL used by Paypal for callback is:
http://localhost:65079/umbraco/MerchelloPayPal/PayPalApi/SuccessPayment?InvoiceKey=b4050932-93bb-495d-826f-0503d3e92300&PaymentKey=8cfd4174-9cab-400a-9e2f-8624d59fd2f7&token=EC-0LC28218XE2191156&PayerID=ZHMY3BS9M3QRG"
We can see that the InvoiceKey is good. But just after that the plugin call my page with this
http://localhost:65079/receipt?inv=A8237017A537A28553A93455018417C58E010146B66EE4E0D63547D0F55A55EF6DFFC958724E56C69B3D245171780559AE9360B33D1483C663B801B33E5D1B1BCB1E5CEB7E7FCD9775206212EA682FA7BAA86797319053E6468DB7A814BE690A0121F53138487E6819EA2D91264FAFFE6745934234BFFDC877F219622B692C31AC6EA8352AC27E167399817301C6ECBD8FE45BEB1A06F15D004C28C59708F266
That wrong. I try to found why. I download the source code from here:
https://github.com/Merchello/Merchello/tree/1.6.1
Where I can found the source of that controller? I open the solution in the Merchello-1.6.1\Plugin\Payments\PayPal\src\Merchello.Plugin.Payments.PayPal folder but I can't found anything on the function "successPayement" thanks
EDIT: I am totally lost! The source code provided do not seam to correspond to the Paypalexpresss plugin 1.4.1 ?! In the source code we got a PayPalEpressCheckout.html in the Merchello.Paypal folder. Nothing like that in the 1.4.1 build.
Nobody use this paypal module? I just need to solve this to deploy to my client. Do Merchello have another working paypal provider that I can use instead?
I'm interested too. I like to start to use Merchello and to devel and deploy it.
Not sure what's with the posting, sorry.
Please use one of the following options if decrypting:
Umbraco.Core.StringExtensions.DecryptWithMachineKey()
Thank for your help! The second line work like a charm (Umbraco.Core.StringExtensions.DecryptWithMachineKey())...
The only thing I need to making work is the capture funds problems: https://our.umbraco.org/projects/collaboration/merchello/merchello/64487-Paypal-Express-capture-funds-problem
Can you take a look ?
I can get the invoice ok, Is it possible to get the Paypal Transaction Id in the return url?
I need this to store so I can reconcile transactions in a seperate database
You have to customize the Paypal code where build the return URL
https://github.com/Merchello/Merchello/blob/merchello-dev/Plugin/Payments/PayPal/src/Merchello.Plugin.Payments.PayPal/Controllers/PayPalApiController.cs
So the PayPalApiController.cs retrieves the PayPal TransactionId?
is working on a reply...