Prepare an oncoming payment
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Body
Amount in cents
The return URL where the user will land after the payment has been complete. The URL will be appended with a URI query payment_status with the value corresponding to the Payment status and state with the value you provided in state.
The subtotal amount in cents. This amount is optionnal, it's useful to give information to the user.
The shipping cost in cents. This amount is optionnal, it's useful to give information to the user.
The discount amount in cents. This amount is optionnal, it's useful to give information to the user.
The tax amount in cents. This amount is optionnal, it's useful to give information to the user.
The redirect URL used in case of payment cancel or fail.
UUID of the customer
Payment state that will be used to preserve the state after the redirection to the provided return_url or cancel_url. If not state is provided Stan will generate one and transmit it to the return_url or cancel_url.