Card Collection
Initiate
This API method initiates a collection/purchase request and returns a JSON response.
Headers
Name
Type
Description
{
"client": {
"email": "[email protected]",
"country": "AU",
"city": "Lisbon",
"street_address": "sixth street",
"zip_code": "3425678",
"state": "PT"
},
"purchase": {
"currency": "USD",
"products": [{
"name": "test",
"price": 1000
}]
},
"skip_capture": false,
"brand_id": "{{Brand Id}}",
}{
"client": {
"client_type": null,
"email": "[email protected]",
"phone": "0793457034",
"full_name": "Example One",
"personal_code": "123245",
"legal_name": "",
"brand_name": "",
"registration_number": "",
"tax_number": "",
"bank_account": "",
"bank_code": "234235",
"street_address": "sixth street",
"city": "Lisbon",
"zip_code": "3425678",
"country": "AU",
"state": "PT",
"shipping_street_address": "",
"shipping_city": "",
"shipping_zip_code": "",
"shipping_country": "",
"shipping_state": "",
"cc": [],
"bcc": [],
"delivery_methods": [
{
"method": "email",
"options": {}
},
{
"method": "text_message",
"options": {
"custom_message": ""
}
}
]
},
"purchase": {
"currency": "USD",
"products": [
{
"name": "test",
"price": 1000,
"quantity": "1.0000",
"discount": 0,
"tax_percent": "0.00",
"category": ""
}
],
"language": "en",
"notes": "",
"debt": 0,
"subtotal_override": null,
"total_tax_override": null,
"total_discount_override": null,
"total_override": null,
"total": 1000,
"request_client_details": [],
"timezone": "UTC",
"due_strict": false,
"email_message": "",
"shipping_options": [],
"payment_method_details": {},
"has_upsell_products": false
},
"payment": null,
"issuer_details": {
"brand_name": "PAYTOTA",
"website": "https://paytota.com",
"legal_name": "PAYTOTA",
"registration_number": "80020002500244",
"tax_number": "",
"legal_street_address": "Venture Labs, Plot 23 Binayomba Road, Bugolobi",
"legal_country": "UG",
"legal_city": "Kamplaa",
"legal_zip_code": "23235",
"bank_accounts": [
{
"bank_account": "1036201557307",
"bank_code": "EQBLUGKAXXX"
}
]
},
"transaction_data": {
"payment_method": "",
"flow": "payform",
"extra": {},
"country": "",
"attempts": []
},
"status": "created",
"status_history": [
{
"status": "created",
"timestamp": 1687258526
}
],
"viewed_on": null,
"force_recurring": false,
"company_id": "706d0675-b131-468c-940d-bc0ea3599e7f",
"is_test": false,
"user_id": null,
"brand_id": "edd6c020-eac6-4b4e-9716-47928f3401d1",
"billing_template_id": null,
"order_id": null,
"client_id": "dfb1fb80-0322-4daa-900f-b0a39cda0450",
"send_receipt": false,
"is_recurring_token": false,
"recurring_token": null,
"skip_capture": false,
"reference_generated": "PT213",
"reference": "",
"issued": "2023-06-20",
"due": 1687262125,
"refund_availability": "none",
"refundable_amount": 0,
"currency_conversion": null,
"payment_method_whitelist": null,
"success_redirect": "",
"failure_redirect": "",
"cancel_redirect": "",
"success_callback": "",
"marked_as_paid": false,
"upsell_campaigns": [],
"referral_campaign_id": null,
"referral_code": null,
"referral_code_details": null,
"referral_code_generated": null,
"retain_level_details": null,
"can_retrieve": false,
"can_chargeback": false,
"creator_agent": "",
"platform": "api",
"product": "purchases",
"created_from_ip": "102.218.37.140",
"invoice_url": null,
"checkout_url": "https://payments.paytota.com/p/9fd05d5c-6639-42f4-8189-a6f9e401988f/",
"direct_post_url": null,
"created_on": 1687258526,
"updated_on": 1687258526,
"type": "purchase",
"id": "9fd05d5c-6639-42f4-8189-a6f9e401988f"
}You have two methods to collect card details from the customer .
Testing Integration
Check Collection/Purchase Status
This method is used to query the collections/purchases transaction status using the transaction ID. Please note that this API also requires authorization using the Secret Key.
Headers
Name
Type
Description
Last updated