Payment Providers

The following payment provider are available: PayPalNVP, Stripe, PAYMILL.
Please note that those strings are case sensitive.

Payment Providers Settings

If not other mentioned, all settings are strings

PayPalNVP

Required settings: username, password, signature
Optional settings: sandbox (boolean), itemName

Stripe

Required settings: publishableKey, secretKey

PAYMILL

Required settings: publicKey, privateKey

Resource URL

https://api.passslot.com/v1/templates/:id/payment

Example Request

Request

PUT https://api.passslot.com/v1/templates/2/payment

{
   "enabled":true,
   "currency":"USD",
   "price":10.50,
   "provider":"PayPalNVP",
   "providerSettings":{
      "username":"user",
      "password":"pwd",
      "signature":"signature"
   }
}

Response

{
   "enabled":true,
   "currency":"USD",
   "price":10.50,
   "provider":"PayPalNVP",
   "providerSettings":{
      "username":"user",
      "password":"pwd",
      "signature":"signature"
   }
}

Resource Information

HTTP Method PUT
API Version 1
Requires Authentication? Yes
Request Format JSON
Request Object Payment Settings
Response Format JSON
Response Object Payment Settings