/native-mobile-pay/mobile-pay

Process a Native Apple Pay transaction for a generic merchant

Headers
  • X-Signature
    Type: string
    required

    HMAC-SHA256 signature of the raw request body used to verify the request integrity.

Body
required
application/json
  • address
    Type: string
    required

    The cryptocurrency wallet address to receive funds

  • billing_address
    Type: object
    required

    The billing address provided by Apple Pay

  • buy_token
    Type: string
    required

    Token received from the /rates endpoint containing transaction parameters

  • email
    Type: stringFormat: email
    required

    The user's email address

  • first_name
    Type: string
    max length:  
    64
    required

    The user's first name

  • ip
    Type: stringFormat: ip
    required

    The end-user's IP address

  • last_name
    Type: string
    max length:  
    64
    required

    The user's last name

  • pay_token
    Type: string
    required

    The full, serialized, encrypted payment token string from Apple

  • merchant_transaction_id
    Type: string
    max length:  
    255

    Your unique identifier for the transaction

Responses
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/sdk-partner/native-mobile-pay/mobile-pay
curl https://sandbox-api.mrcr.io/v1.6/sdk-partner/native-mobile-pay/mobile-pay \
  --request POST \
  --header 'X-Signature: 42ec400ca2c40d33f4c3a985efc0f8e93914a1db5403bd239d6e48540542f3d2' \
  --header 'Content-Type: application/json' \
  --header 'Sdk-Partner-Token: YOUR_SECRET_TOKEN' \
  --data '{
  "merchant_transaction_id": "",
  "pay_token": "",
  "buy_token": "",
  "email": "",
  "first_name": "John",
  "last_name": "Doe",
  "billing_address": {
    "country_code": "DE",
    "street_line_1": "Example street line 1",
    "street_line_2": "Example street line 2",
    "state_code": "BE",
    "city": "Berlin",
    "zip_code": "1234"
  },
  "address": "1Lbcfr7sAHTD9CgdQo3HTMTkV8LK4ZnX71",
  "ip": "123.123.123.123"
}'
{
  "status": 200,
  "data": {
    "id": "28a3c125a28075453",
    "status": "pending",
    "error_code": "insufficient_funds"
  }
}