https://github.com/nikiforovall/zooz-sdk
ZooZ API (Salesforce, Apex)
https://github.com/nikiforovall/zooz-sdk
apex salesforce zooz-sdk
Last synced: 22 days ago
JSON representation
ZooZ API (Salesforce, Apex)
- Host: GitHub
- URL: https://github.com/nikiforovall/zooz-sdk
- Owner: NikiforovAll
- Created: 2016-09-29T00:45:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-02T20:54:10.000Z (over 8 years ago)
- Last Synced: 2025-02-12T11:53:53.885Z (3 months ago)
- Topics: apex, salesforce, zooz-sdk
- Language: Apex
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ZooZ-SDK-API
## Custom setting installation script
```
List result = new List{
new ZoozSettings__c(Name = 'Environment', Value__c = ''),
new ZoozSettings__c(Name ='productionUrl', Value__c = 'https://app.zooz.com/mobile/ZooZPaymentAPI'),
new ZoozSettings__c(Name = 'sandboxUrl', Value__c = ' https://sandbox.zooz.com/mobile/ZooZPaymentAPI'),
new ZoozSettings__c(Name ='programId', Value__c = ''),
new ZoozSettings__c(Name = 'programKey', Value__c = ''),
new ZoozSettings__c(Name = 'ZoozDeveloperId', Value__c = ''),
new ZoozSettings__c(Name = 'ZoozServerAPIKey', Value__c = '')};
upsert result Name;
```
## Example/Usage
```
// for further assistance check ZoozAPIManager.cls
ZoozAPiManager manager = new ZoozAPiManager();
String customerLoginID = '';
String customerLoginName = 'John Doe';
manager.getToken(customerLoginID, customerLoginName);
manager.addPaymentMethod('01/2020', '4580458045804580', '123','[email protected]', '[email protected]', manager.CustomerToken);
manager.openPayment(100, customerLoginID);
manager.sale(zm.PaymentResponse.paymentToken, manager.PaymentMethodToken);
```