paypal / here-sideloader-api-samples

Sideloader API samples that enable to integrate PayPal Here into other apps
Other
24 stars 32 forks source link

Cannot get the 'result' to pass back #6

Closed casom13 closed 10 years ago

casom13 commented 10 years ago

I am creating a php integration for a shopping cart plugin I am working with.

Once the payment is complete, the app passes it back to browser with everything except the result. I have tried changing the position of the {result} section. Here is how I would like to see it, and what i have tried.

My callback info (would work best for me) - "&result={result}&Type={Type}&InvoiceId={InvoiceId}&Tip={Tip}&Email={Email}&TxId={TxId} "

Have Tried - "?{result}?Type={Type}&InvoiceId={InvoiceId}&Tip={Tip}&Email={Email}&TxId={TxId} "

Have Tried - "/{result}?Type={Type}&InvoiceId={InvoiceId}&Tip={Tip}&Email={Email}&TxId={TxId} "

None of these examples will pass back the result it is always returned blank, they will pass everything else fine. Don't know what i'm doing wrong. Any help would be appreciated.

djMax commented 10 years ago

{Result} isn't a valid substitution value. I think {Type} tells you what you are looking for.

casom13 commented 10 years ago

Thanks for answering and helping me out.

So do i just assume that if Type = CreditCard then the transaction went through without issue?

djMax commented 10 years ago

Or one of the other valid types. Try pressing cancel in Pph, you should see the type value change. And that's the only way back - completed transaction or cancel

Sent from my iOS 7 device - please excuse lack of metaphors and emotion.

On Jun 18, 2014, at 6:09 PM, casom13 notifications@github.com wrote:

Thanks for answering and helping me out.

So do i just assume that if Type = CreditCard then the transaction went through without issue?

— Reply to this email directly or view it on GitHub.

casom13 commented 10 years ago

Thanks, seems like a dumb question now.