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

 

Was this article helpful?

Related Articles

Comments are closed.

  • About Us

    Kulturra.com builds enterprise apps on the Force.com platform. Our app, Payment Center, is currently one of the top financial apps in Salesforce. Since its launch in 2012, it's now being used by 1000+ Salesforce users and continues to grow.

  • Our Culture

    As a company, we believe in simple. So we build simple applications out of complex processes. We also provide unparalleled customer support because we truly believe that our customers' success is our success. Read more on what our customers say about us.
  • Check Our Customer Reviews

    2015sf_Partner_Available_On_appexchange_RGB_Gray_Border
Copyright © 2012-2017 Kulturra.com, Inc.
21151 S. Western Ave., Suite 215, Torrance, CA 90501, USA
MSA
All trademarks, trade names and logos appearing on the site are the property of their respective owners.
^ Back to Top