Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 908 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 908 Bytes

Payment using Midtrans with core api method

In this case the payment is made with the BCA bank, the product details are made static on the payment controller.

  • before submitting payment, setup midtrans url notification first.
  • after making a payment, please pay using the Midtrans Simulator.
  • to handle midtrans notifications on the local server, we can use a webhook to catch notifications from midtrans after paying.
  • please set your webhook url on the midtrans configuration menu.

API Reference

Creating Payment

  POST /buy/product
Parameter Type Description
payment_method string Required. Ex: bank_transfer

After making a payment

Post Midtrans Notification Response that appears in the webhook.

  POST /notification/push