AME
Introduction
Ame is a digital wallet that allows you to pay for your purchases in both physical and online stores, send and receive money, and pay bills. It is a digital account that enables you to make payments and transfers, and also offers a prepaid card.
Generate Orders
Creating an Ame REDIRECT order:
POST /api/v1/checkout/form
Host: sulpayments.ch
Content-Type: application/json
ACCOUNT_TOKEN: "<token>"
{
"order":{
"code":"123", # Order reference in your system (required)
"notification_url":"https://yoursystem.com/postback/", # Where we'll notify when status changes (required)
"redirect_url":"https://yoursystem.com/finish_checkout?auto_redirect=true", # If filled, at the end of checkout we'll automatic redirect to that page (optional)
"value":50.00, # (required)
"additional_info":"A description of your order, as a string", # (required)
"payment_method":"ame" # (required)
}
}
The response will be:
{
"form_id": "dbcedec8-f587-4203-8aa4-a74da83fb32a", # Order reference in our system. You should save that.
"url": "https://sulpayments.ch/checkout/payment/dbcedec8-f587-4203-8aa4-a74da83fb32a" # Form URL, redirect your customer to here
}