All Categories Integrations Custom integration

Custom integration

How to integrate Mango with your app using a custom integration

By Oliver P
August 17, 2021

If you've developed your own app, you can use this integration to send data to a custom URL.

On the main menu of the Mango plugin, select the integrations tab and click to add a new integration.

Then select the "Integration Type" for "Custom Integration".

image.png

Then, simply add your integration details as shown below.

image.png

The integration ID is a short identifier (self-created), so you can differentiate it from other Custom integrations you might add later on.

You can get the Token, URL from your developer.

When this integration is used, it makes a JSON-encoded POST request to this custom URL with the following fields:

  • email

  • name

  • address_line1

  • address_line2

  • address_zip

  • address_city

  • address_state

  • address_country

  • billing_name

  • billing_address_line1

  • billing_address_zip

  • billing_address_city

  • billing_address_state

  • billing_address_country

  • billing_address_country_code

  • shipping_name

  • shipping_address_line1

  • shipping_address_zip

  • shipping_address_city

  • shipping_address_state

  • shipping_address_country

  • shipping_address_country_code

  • payment_name

  • payment_description

  • payment_currency

  • payment_price

  • payment_payment_method

  • payment_mode

  • plan_id

  • plan_name

  • plan_description

  • plan_currency

  • plan_price

  • plan_interval

  • plan_trial

  • plan_payment_method

  • plan_mode

The email field is never empty. The address fields are empty if a specific address is not requested from the buyer.

From top to bottom, addresses are for card, billing, and shipping.

Payment and plan fields are only sent if payment or plan is set.

If set, it also sends an Authorization: A basic header with the value of the Token field.

Was this article helpful?

Thanks for your feedback!