Skip to main content

Initialize Payment Session

POST 

/v1/payment/create-session-data

Signature

This field contains a hash value. This hash is constructed by performing a hashing calculation on a string built up by concatenating the following fields' values (in the given order):

  • quoteCurrency
  • cryptoWalletAddress
  • partnerId
  • partnerName
  • secret word hashed with MD5 and then converted to uppercase

The default hashing algorithm Skrill accepts is SHA-256. To calculate the signature, you need to take the values of the fields listed above exactly as you are going to post them in the request, concatenate them, and perform a SHA-256 calculation on this string.

Secret Word

Secret word will be set by an authorized Skrill referral partner representative, who will be given access to the specific part of the Paysafe Partner's portal, during the onboarding process.

Request

Body

required

Required data for session creation

    quoteCurrency stringrequired

    The quote currency the customers wants to purchase

    baseCurrency string

    The fiat currency in which the customer wants to make the payment for the quote

    baseAmount number

    Amount the customer wants to spend to purchase crypto

    cryptoWalletAddress stringrequired

    Crypto address in which the customer wants to transfer the crypto

    partnerId int64required

    Partner unique identifier

    partnerName stringrequired

    Partner's display name

    partnerTransactionId string

    Partner's transaction id

    preferredPaymentMethod string

    Preferred payment method

    partnerWebhookUrl string

    Partner's url address where they expect webhook

    successUrl string

    Success url provided from web3 wallet

    defaultUrl string

    Default url provided from web3 wallet

    failureUrl string

    Failure url provided from web3 wallet

    userCountry string

    The country of the user (ISO3166-1 alpha-3)

    signature stringrequired

    Hash value of mandatory parameters values and secret word

Responses

OK

Schema

    sessionId stringrequired

    Unique identifier of crypto purchase session

    redirectLink stringrequired

    Link used to redirect the customer to start crypto purchase session

    signature stringrequired

    Hash value of mandatory parameters values and secret word

Loading...