GET api/PayFastController/GetToken/{basket_id}/{trans_amount}/{currency_code}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| basket_id | string |
Required |
|
| trans_amount | string |
Required |
|
| currency_code | string |
Required |
Body Parameters
None.
Response Information
Resource Description
PayFastViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| token | string |
None. |
|
| status | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"token": "sample string 1",
"status": true
}
application/xml, text/xml
Sample:
<PayFastViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/asanRishta.Models.ViewModels"> <status>true</status> <token>sample string 1</token> </PayFastViewModel>