wigoodocs

Hand the traveler to checkout from your app

What your app does with the buy_url from get_quote: where to open it, what to keep, what the traveler sees, and what never to do.

get_quote ends with a buy_url. Your app does not take the payment: it tells the traveler what they are about to buy, opens that link, and lets getwigoo.com do the rest. This page is about that moment. The link itself is explained on the plan link, and the page it opens on checkout without an account, so this page does not repeat them.

Open buy_url as it is, from a tap the traveler makes on a button such as "Buy this eSIM" or "Continue to checkout".

  • In the system browser. This is the safest default on a phone: it is the plain web page the checkout is built and tested as, and a traveler who is signed in to Wigoo in that browser is recognized.
  • In an in-app web view. The checkout is an ordinary web page, so the email and card steps do not depend on how it is opened. Apple Pay and Google Pay are different: Wigoo's checkout opens their own payment sheet straight from the tap on the wallet button, and whether that sheet is allowed inside a web view depends on the web view and the operating system, not on Wigoo. We have not tested the checkout in embedded web views, so test the wallet buttons on your platform, or use the system browser. A card, Link or a local method still works if a wallet button does not.

Do not open the link in a hidden or background web view, and do not load the checkout page and drive it with scripts. The traveler pays, so the traveler should see the page. An agent that drives a browser for someone follows checkout without an account instead.

Pass the URL on exactly as get_quote returned it.

  • Do not rewrite it. The plan value is a package id that is not always the plan_id you used to ask for the quote, and get_quote is what knows the difference. A link you build yourself can open the wrong plan. See the plan link.
  • Keep plan and days, which select the plan and the length of an unlimited day pass, and qty, which is the number of eSIMs.
  • Keep utm_source=mcp and utm_medium=agent. The link works without them, but they are how Wigoo counts what apps bring.
  • Do not add a price. The link carries none: the server calculates the amount when payment opens, so there is nothing to edit or forge.

Quantity and days

  • Several eSIMs. Ask get_quote for quantity from 1 to 10, for example for a family. The response adds total, and the link carries qty. The link opens with that quantity at the list price. The 5% off for extra eSIMs is offered on the payment screen, and only to someone who opens it with one eSIM. See get_quote.
  • Unlimited day passes. The link carries days and the page opens on that length of trip. Take the length from the unlimited_durations_days of get_destination, so you never ask for a length that is not sold.

What the traveler sees

For someone with no account, which is most travelers, the link opens like this:

  1. The destination page, with the plan selected and scrolled into view. On a phone a bar with Buy sits at the bottom of the screen.
  2. They press Buy, and a sheet asks where to send the eSIM, with an email field.
  3. They type their email and choose Continue without the code. Signing in with Apple, Google or a code is optional.
  4. They pay with a card, Apple Pay, Google Pay, Link or a local method shown for their country. The amount is calculated by the server, in their currency.
  5. The eSIM QR code appears on the page right after payment and is sent to the email.

The button labels come in the language of the link. Checkout without an account lists them for all eight languages, which is useful if your app explains the steps in its own words.

A traveler who is already signed in to Wigoo in that browser skips the email: the link goes straight to payment for that plan. Do not rely on it. Most travelers who arrive from an app have no Wigoo session in that browser, so plan for the email step.

What to tell the traveler

Before they tap, in your own words and your own language:

  • Which plan: the destination, the data and the validity, from the quote.
  • The price, as a list price: "about 21.90 EUR" from the formatted field, with a note that the final amount is shown at payment. See rules for agents.
  • That they will leave your app to pay on getwigoo.com, and that an email and a payment are enough, with no account.
  • The checks that stop a purchase from being wasted: the phone must support eSIM and be unlocked, and the eSIM is data only, so the usual number keeps its calls and texts.

After they come back, assume nothing. The server documents no return address and no confirmation to your app, so you cannot know whether they paid. Ask in the conversation, or tell them what to expect and let them continue:

  • The QR code is on the page right after payment and in the email they typed.
  • They can install it at home on wifi before the trip. Validity starts when the eSIM first connects at the destination.
  • For a problem with an order, or a refund, they write to support@getwigoo.com with the email address they used.

What never to do

  • Do not collect the traveler's card, wallet or payment details yourself. There is no API to pay. Payment happens only on Wigoo's page, and your app has no reason to see card data.
  • Do not claim the price is final. A quote is a list price, and the amount charged can differ in the traveler's currency.
  • Do not rewrite, shorten or wrap the link in a way that changes its address or its parameters.
  • Do not open the link on the traveler's behalf, or tap Buy, without them asking for it. Paying is their decision.
  • Do not reuse an old link blindly. Plans and prices change. Ask for a new quote when the traveler comes back after a while. A link to a plan that is gone still opens the destination with every plan, so it never leads nowhere.

On this page