Payment Service Configuration
Payment service configuration configures the payment service that has been added. It gives us a unique id that displays all its categories. The type of payment is specified, if its stripe or any other. It also displays a unique stripe key along with the date on which it was created or modified.
JSON Table
Parameter | Data Type | Description | Default/Sample Value |
---|---|---|---|
success | boolean | Whether the API call was successful or not. | |
message | String | A message indicating the API success or failure. | |
data | application/json | A JSON object for the response data. | |
data/totalCount | int | The total number of payment configurations fetched. | |
data/paymentServiceConfig | application/json | An array of JSON objects for each payment service config is fetched and details are extracted. | |
data/paymentServiceConfig/service_id | int | The system-generated unique service id for each payment service configuration. | |
data/paymentServiceConfig/name | String | The name of the payment service configuration. | “test” |
data/paymentServiceConfig/is_default | Boolean | Generates value if the payment service configuration is default or not. | 0 |
data/paymentServiceConfig/type | String | The type of payment service to be used needs to be specified. | stripe |
data/paymentServiceConfig/ stripe_publishable_key | String | This is the key of the stripe account that we are using that needs to be specified. It should be a unique combination of alphabets and numbers. | pk_test_gkgqksw8 q76yhnluyo |
data/paymentServiceConfig/ stripe_secret_key | String | This is a secret key used for authorization of the payment service config used. | sk_test_ NVRuQHGEj2s TJW2gDLfSO9Vc |
data/paymentServiceConfig/ date_created | Date | This is the date on which the payment service account was created. | |
data/paymentServiceConfig/ date_modified | Date | This is the date on which the account might have been modified. | |
data/paymentServiceConfig/ portals | int | This specifies that the account is available on which portals. The portal numbers are defined here. |
Copy Sample JSON
Sample JSON
[ { "success": true, "message": "Record(s) Found", "data": { "totalCount": 8, "paymentServiceConfig": [ { "service_id": 1, "name": "ak", "is_default": 0, "type": "stripe", "stripe_publishable_key": "pk_test_S7R3ub822bE7qS4gzTUkRaWP", "stripe_secret_key": "sk_test_NVRuQHGEj2sTJW2gDLfSO9Vc", "date_created": "2017-09-11 11:05:15.41251", "date_modified": "2017-11-07 08:56:14.778454", "portals": [ 11, 10, 5, 8, 20, 21, 17, 16, 7, 9 ] }, { "service_id": 4, "name": "Strip Account Delta1", "is_default": 0, "type": "stripe", "stripe_publishable_key": "pk_test_wkn3iEKqrkMfJhqSIG9zbWmb", "stripe_secret_key": "sk_test_AAtWhJI65lokWW4t9WF9pFmC", "date_created": "2018-02-08 06:02:28.899178", "date_modified": null, "portals": [] }, { "service_id": 5, "name": "Strip Account Delta2", "is_default": 0, "type": "stripe", "stripe_publishable_key": "pk_test_wkn3iEKqrkMfJhqSIG9zbWmb", "stripe_secret_key": "sk_test_AAtWhJI65lokWW4t9WF9pFmC", "date_created": "2018-02-08 06:07:44.657881", "date_modified": null, "portals": [] }, { "service_id": 7, "name": "Stripe Account - Alpha32", "is_default": 0, "type": "stripe", "stripe_publishable_key": "pk_test_wkn3iEKqrkMfJhqSI89mb", "stripe_secret_key": "sk_test_AAtWhJI65lokWW4t9WF9pFmC", "date_created": "2018-02-12 10:23:00.833154", "date_modified": null, "portals": [] }, { "service_id": 8, "name": "Stripe Account - Alpha3289", "is_default": 0, "type": "stripe", "stripe_publishable_key": "hfhfyrutuyjgjgit97uykg", "stripe_secret_key": "sk_test_AAtWhJI65lokWW4t9WF9pFmC", "date_created": "2018-02-12 10:23:23.840915", "date_modified": null, "portals": [] }, { "service_id": 9, "name": "Stripe Account - Alpha3229", "is_default": 0, "type": "stripe", "stripe_publishable_key": "hfhfyrutuyjgjgit97uykg", "stripe_secret_key": "sk_test_AAtWhJI65lokWW4t9WF9pFmC", "date_created": "2018-02-12 12:20:01.521564", "date_modified": "2018-02-12 12:20:42.679814", "portals": [] }, { "service_id": 6, "name": "Stripe Account - Delta", "is_default": 1, "type": "stripe", "stripe_publishable_key": "pk_test_wkn3iEKqrkMfJhqSIG9zbWmb", "stripe_secret_key": "sk_test_AAtWhJI65lokWW4t9WF9pFmC", "date_created": "2018-02-08 09:13:44.188885", "date_modified": "2018-02-13 06:29:55.731076", "portals": [] }, { "service_id": 2, "name": "vv", "is_default": 0, "type": "stripe", "stripe_publishable_key": "pk_test_S7R3ub822bE7qS4gzTUkRaWP", "stripe_secret_key": "sk_test_NVRuQHGEj2sTJW2gDLfSO9Vc", "date_created": "2017-09-15 06:43:00.641654", "date_modified": "2018-02-26 06:36:57.095586", "portals": [ 1, 4 ] } ] } } ]
API Calls
/V1.14/services/payment/config
/V1.14/services/payment/config/{config_id}
/V1.14/services/payment/config/{payment_id}
/V1.14/services/payment/config
/V1.14/services/payment/config/{config_id}