This page is to further demonstrate how to implement frontend processes for Credit Card transactions

1. Get Card Token Step

/


2. Charge process is done via Backend

Check `web.py` file, section `/charge_core_api_ajax` for the backend implementation
// sample charge in CURL
curl -X POST \
  https://api.sandbox.midtrans.com/v2/charge \
  -H 'Accept: application/json' \
  -H 'Authorization: Basic < From your server_key >' \
  -H 'Content-Type: application/json' \
  -d '{
  "payment_type": "credit_card",
  "transaction_details": {
    "order_id": "order102-2-1562650595",
    "gross_amount": 100000
  },
  "credit_card": {
    "token_id": "< Token ID from Get Token Step >",
    "authentication": true
  }
}'
    

3. 3DS Authentication Step

...