iZettle / URL-Scheme

iZettle Custom URL Scheme Example Apps
https://developer.izettle.com
33 stars 9 forks source link

Avbryt i iZettle #4

Closed johansolve closed 12 years ago

johansolve commented 12 years ago

Ska inte Avbryt-knappen i iZettle anropa url i x-failure? Det gör den inte. Man stannar kvar i iZettle.

jensutbult commented 12 years ago

Tapping the Cancel-button should open the x-failure URL with the error code CancelledByUser. What steps do you go through to reproduce the bug?

One possible reason could be that your application is not sending a valid x-failure URL. Can you validate that your app will be respond to the URL you are using? This can be done using the URL Tester app.

johansolve commented 12 years ago

Initiate a purchase with izettle url, tap "Avbryt" in iZettle before doing anything else.

The x-failure URL works properly when linked from a web page.

jensutbult commented 12 years ago

My guess is that the url is not properly encoded. Look at the example applications to se how it is done.

johansolve commented 12 years ago

Encoded like this now, doesn't help: fmp%3a%2f%2f%24%2fizettle.fmp12%3fscript%3dreturn

I'll do some more tests to see if I can figure it out. at least I know it SHOULD work.

jensutbult commented 12 years ago

Our test-app will encode its failure url like this: "customurl://failure?foo%3Dbar". I suggest you look into the example code. Closing this case for now. Reopen it if you can't find a solution.

johansolve commented 12 years ago

Works now.