v1

latestOpenAPI 3.0.02026-07-2691259477.2 KB
MoneyIns | Local Payments

(Deprecated) Initialize Trustly Payment

Trustly is a Swedish payment method used in 29 European countries. With Trustly you can buy and pay from your bank account.

post/v2/moneyins/trustly/init

Headers

Authorizationstring required

Authorization bearer (OAuth 2)

PSU-Accept-Languagestring

Response language accepted by final client (PSU). English by default

PSU-IP-Addressstring required

IP address of the final client (PSU).

PSU-User-Agentstring

User-agent of the final client (PSU).

Request body

finalCustomerEmailstring

End user email

finalCustomerFirstNamestring

End user first name

finalCustomerLastNamestring

End user last name

returnUrlstring

Your site returns the URL, called to terminate the operation and on which the callback will be sent, with data in POST parameters. This URL must contain a unique ID so you know which operation is related to the return.

referencestring

Unique ID of the call, generated by your server. This ID can be used as a search field when looking for operation details

accountIdstring required

Payment Account ID to Credit

totalAmountinteger required

Amount to Debit Amounts are given as integer numbers in cents

commissionAmountinteger

Your Fee Amounts are given as integer numbers in cents

commentstring

Comment Regarding the Transaction

autoCommissionboolean

If true:

  1. [amountCom] will be ignored and will be replaced with Lemonway's fee
  2. You will not receive any fee

Example request

{
  "finalCustomerEmail": "wade.winston@email.com",
  "finalCustomerFirstName": "Wade",
  "finalCustomerLastName": "Winston",
  "returnUrl": "https://www.yoursite.com/payment_return.php/?id=367GBD",
  "reference": "Dze8778",
  "accountId": "33612345678",
  "totalAmount": 1500,
  "commissionAmount": 100,
  "comment": "Order number 2457765AX2",
  "autoCommission": false
}

Response

OK

idinteger

Transaction ID. You will this this value to confirm the transaction

actionUrlstring

Redirected URL for the client on the iDeal page payment