Create a Payment. When a user selects a payment method managed by Thunes, you must ask for a payment order to be created. We provide the PaymentOrder/Create web service for this purpose.

CALL Information / Examples

API Call
POST https://api.limonetikqualif.com/Rest/V40/PaymentOrder/Create

Request Example

{
  "PaymentOrder": {
    "MerchantId": "sandbox-merchantorpsp-fr",
    "PaymentPageId": "creditcard",
    "Amount": 100.0,
    "Currency": "EUR",
    "MerchantUrls": {
      "ReturnUrl": "http://www.citronrose.com/Payment_Return.aspx",
      "AbortedUrl": "http://www.citronrose.com/Payment_Cancelled.aspx",
      "ErrorUrl": "http://www.citronrose.com/Payment_Error.aspx",
      "ServerNotificationUrl": "http://www.citronrose.com/Payment_Notification.aspx"
    },
    "MerchantOrder": {
      "Id": "1257981",
      "Customer": {
        "Email": "[email protected]"
      }
    }
  }
}
<Request>
    <PaymentOrder>
        <MerchantId>sandbox-merchantorpsp-frr</MerchantId>
        <PaymentPageId>creditcard</PaymentPageId>
        <Amount>100.00</Amount>
        <Currency>EUR</Currency>
        <MerchantUrls>
            <ReturnUrl>http://www.citronrose.com/Payment_Return.aspx</ReturnUrl>
            <AbortedUrl>http://www.citronrose.com/Payment_Aborted.aspx</AbortedUrl>
            <ErrorUrl>http://www.citronrose.com/Payment_Error.aspx</ErrorUrl>
            <ServerNotificationUrl>http://www.citronrose.com/Payment_Notification.aspx</ServerNotificationUrl>
                </MerchantUrls>
        <MerchantOrder>
            <Id>1257981</Id>
            <Customer>
                <Email>[email protected]</Email>
            </Customer>
        </MerchantOrder>
    </PaymentOrder>
</Request>

Response Example

{
  "ReturnCode": 1000,
  "ReturnMessage": "Success",
  "RequestId": "1b07e7c6-0d92-4cc8-b500-75510acb49bf",
  "PaymentOrderId": 99972422011,
  "PaymentPageUrl": "https://payment.limonetikqualif.com/checkout?PaymentOrderid=99972422011"
}
<Response>
    <ReturnCode>1000</ReturnCode>
    <ReturnMessage>Success</ReturnMessage>
    <RequestId>1b07e7c6-0d92-4cc8-b500-75510acb49bf</RequestId>
    <PaymentOrderId>99972422011<PaymentOrderId>      
    <PaymentPageUrl>
        https://payment.limonetikqualif.com/checkout?PaymentOrderid=99972422011
    </PaymentPageUrl>
</Response>

Parameters in the request

🚧

Not to overload this first part, only the main fields have been shown here

... but there are others. Although they are not all required, we recommend filling in as many as possible. This ensures compatibility with as many payment methods as possible without further integration work. Please contact your Thunes specialist for further information on the fields required for each payment method.

To see other possible fields refer to this link

ParameterDescriptionComments
MerchantIdYour retailer identifierProvided by Thunes
PaymentPageIdPayment method identifierProvided by Thunes
AmountPayment order amountUse a decimal point and two decimal places, e.g. 100.00
CurrencyPayment order currencyCodified as specified in ISO 4217.
ReturnUrlURL to which our platform should redirect users if the authorisation request is confirmedIf you have not yet received server-to-server notification (or if you don't use it), you must check the status of the payment order via the PaymentOrder/Detail web service (WS) before confirming the order. This is for security reasons and because the order status may be Authorized or Authorizing, accordingly.
AbortedUrlURL to which our platform should redirect users if they cancel their paymentWe recommend using the payment method selection page to allow users to finalize their order using a different payment method.
ErrorUrlURL to which our platform should redirect users if an error occurs in the payment flowWe recommend using the payment method selection page to allow users to finalize their order using a different payment method.
MerchantOrderObject containing order information
IdYour order identifierWe strongly recommend that you provide us with this identifier, which will then be visible in our BackOffice and may be used as search criteria.
EmailCustomer's email addressThis address may be used:
to pre-complete the corresponding field on the payment page (if appropriate).
to send further payment information to the customer.
RawCustom1Free text fieldMay be used during the integration phase to simulate behaviour.

Response

ParameterDescriptionComments
PaymentOrderIdUnique payment order identifier on our platformMake note of this identifier for performing other operations on the payment order.
PaymentPageUrlURL of the payment pageRedirect the user to this page (HTTP 302) to make his or her payment.