Payment Center API gives you the ability to initiate payments outside of Salesforce. For example, you can call the API from your shopping cart and the payment will be processed inside Salesforce. So your payments can come from disparate systems, but they all end up in Salesforce, giving you a more unified payment system.

 

Authentication

Before calling any API, you need to authenticate to get an access token. You use the access token to call the API. As part of authentication, you need a Client ID and a Client Secret. Please email support@kulturra.com to get those values. Below is an example of an authentication using the Username-Password flow:

curl -k https://<instance>.salesforce.com/services/oauth2/token \
     --form client_id=<client ID> \
     --form client_secret=<client secret> \
     --form grant_type=password \
     --form username=<username> \
     --form password=<password><security token>

EXAMPLE REQUEST:

curl -k https://na14.salesforce.com/services/oauth2/token \
     --form client_id=3MVxxxZ.WNe6byQDxxxxKq5v.BvHAXxxTaCaP38yLxxPWxxxPbTlxxx6DqF_aIR5uo.gYxxxFmL9BXXxTOsL8 \
     --form client_secret=3999599995229995998 \
     --form grant_type=password \
     --form username=apitest@kulturra.com \
     --form password=apitestpwd999AXXhxXXx3Bq85rGSXXX9X9jN

EXAMPLE RESPONSE:

{"id":"https://login.salesforce.com/id/00Dx0000000eqdXXXQ/005x0000000TqOcXXK",
 "issued_at":"1419239900426",
 "token_type":"Bearer",
 "instance_url":"https://na14.salesforce.com",
 "signature":"PxxR7F1XXXXE35z8jy9IoxXXXy/f4KxxxjE5LBqY+OY=",
 "access_token":"00Dx0000000exxV!AXXXXXfcKqHB0czbxxxxxHkyo9gt41BxxxhWPxxZzaXxXxbAJxx9Ov4Hno..mu1Xi5XXXX8MWHVD81JVr6ShxxxxxorGv6Uy"}

The access token returned by the above request can then be used to call the following API:

RELATED DOCUMENTATION

Getting Started with the Force.com REST API

Interact with the Force.com REST API from PHP