Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
28 Posts 6947 Views
Keep in mind, the PayPalPayment success code is pretty primative. Your payments wont show up as completed unless the user clicks on the 'return to merchants page' link after they have completed their purchase on PayPal's site.
Hopefully that'll help a few folks get some completed orders!
What did you do to make payment status display 'success'?
I'm trying with a paypal sandbox account, it works fine on paypal, but when I return to SS I'm always getting payment status 'Failure'.
(Stable silverstripe release, trunk e-commerce & payment module)
'Payment Review' is disabled on the sandbox.
When debugging the Payment Status that Paypal was sending, it showed 'pending' due to 'multi_currency', as I was having my shop in euros while the 'seller account' was in GBP.
I was assuming that paypal would handle this, but there's no option to set this in the sandbox.
Now I'm testing with accounts where everything is in euro.
But, weird enough, now I'm getting Internal server errors: "Premature end of script headers: main.php" :S
Reason of crashing: $payment->AuthorisationCode is not being set, it's not in $_REQUEST['custom'] (params).