Create SDK Session Token
Last updated
Was this helpful?
Was this helpful?
grpcurl -H "x-connector: stripe" \
-H "x-connector-config: {\"config\":{\"Stripe\":{\"api_key\":\"$STRIPE_API_KEY\"}}}" \
-d '{
"merchant_sdk_session_id": "sdk_session_001",
"amount": {
"minor_amount": 10000,
"currency": "USD"
},
"payment_method_type": "APPLE_PAY",
"country_alpha2_code": "US",
"customer": {
"name": "John Doe",
"email": "john@example.com"
}
}' \
localhost:8080 \
types.MerchantAuthenticationService/CreateSdkSessionToken{
"session_token": {
"apple_pay": {
"session_data": "eyJtZXJjaGFudElkZW50aWZpZXIiOi...",
"display_message": "Example Store"
}
},
"status_code": 200
}