An open API service indexing awesome lists of open source software.

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)

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);
```