Create Payment
Create a payment
Settle all your payments into any currency with Sellix’s Accept->Settle solution.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
The name of the store to perform actions on via the API
Body
Email of the customer. Should you want to handle emails on your own, pass to this field a company email to which PDF receipts of orders will be sent for accounting and log purposes
Whether or not you want to handle the payments UI. If false, return_url must be specified as it is the website where we will redirect the customer once he has paid through our platform. If true, we will return a full invoice object in the response for you to handle. You can receive updates over invoices and handle subsequent logics through our webhooks
Other than product_id, a cart object can be specified if multiple products need to be purchased through the API
Cryptocurrency confirmations required to count a transaction over the total crypto amount needed
Pass a Sellix coupon code to apply a discount over the invoice
If gateway is PAYPAL and no paypal_apm is passed, specify credit_card true to land the customer on the PayPal managed credit card page instead of the onboarding login
Required if product_id and cart are null, defines the currency of value
CAD
, HKD
, ISK
, PHP
, DKK
, HUF
, CZK
, GBP
, RON
, SEK
, IDR
, INR
, BRL
, RUB
, HRK
, JPY
, THB
, CHF
, EUR
, MYR
, BGN
, TRY
, CNY
, NOK
, NZD
, ZAR
, USD
, MXN
, SGD
, AUD
, ILS
, KRW
, PLN
The custom fields passed by the user at checkout. The type is map<string, string>
Customer details to be used by our fraud shield in order to score potential fraud attempts
If null, the customer will be asked automatically to choose a gateway on the Sellix hosted /payment page. If product_id is specified, the gateway must be on in the product's gateways array
PAYPAL
, STRIPE
, SKRILL
, PERFECT_MONEY
, CASH_APP
, BINANCE
, BITCOIN
, LITECOIN
, ETHEREUM
, BITCOIN_CASH
, NANO
, MONERO
, SOLANA
, RIPPLE
, BINANCE_COIN
, USDC
, USDT
, TRON
, BITCOIN_LN
, CONCORDIUM
, POLYGON
, PEPE
, DAI
, WETH
, APE
, SHIB
, USDC_NATIVE
, DOGECOIN
, PYTH
, BONK
, JUP
, JITO
, WEN
, RENDER
, MOBILE
, HNT
PAYPAL
, STRIPE
, SKRILL
, PERFECT_MONEY
, CASH_APP
, BINANCE
, BITCOIN
, LITECOIN
, ETHEREUM
, BITCOIN_CASH
, NANO
, MONERO
, SOLANA
, RIPPLE
, BINANCE_COIN
, USDC
, USDT
, TRON
, BITCOIN_LN
, CONCORDIUM
, POLYGON
, PEPE
, DAI
, WETH
, APE
, SHIB
, USDC_NATIVE
, DOGECOIN
, PYTH
, BONK
, JUP
, JITO
, WEN
, RENDER
, MOBILE
, HNT
DEPRECATED: If gateway is LEX_HOLDINGS_GROUP, method to be used for the customer to pay
If gateway is PAYPAL, a paypal_apm (PayPal Alternative Payment Method) can be specified. To retrieve the available PayPal APM for a specific customer session, please refer to the PayPal SDK using window.paypal.FUNDING and fundingSource to filter out available methods. You can also use our documentation on how to process white_label payments
bancontact
, eps
, trustly
, mercado
, paylater
, sepa
, venmo
, blik
, giropay
, ideal
, mybank
, sofort
, przelewy24
, credit
If specified value, currency and custom_fields will be taken from the product details
Required for subscriptions 2.0. Specified which plan to use for the invoice
Key should be productId. Value should be the variant uniqid
Can be passed with either product_id null or not. The value or product's price will be multiplied by this amount
x > 1
Required if product_id and cart are null. Defines the title of the purchase, can be the digital good's name or a brief summary of what the customer is paying for
Required if product_id and cart are null. The customer will be asked to pay for this amount
Webhook URL to which updates regarding this payment (invoice) will be sent
Was this page helpful?