Midtrans / midtrans-nodejs-client

Official Midtrans Payment API Client for Node JS | https://midtrans.com
MIT License
172 stars 55 forks source link

Problem with order_id that have '/' #70

Open ahmadfadlydziljalal opened 2 months ago

ahmadfadlydziljalal commented 2 months ago

Tanya, tolong berikan best practice,

Jika order_id = 00561/05/ADI-IL/24JKT, dan ini adalah ketentuan tempat bekerja, maka saat GET transaction_status seperti:

 return Transaction::status('00561/05/ADI-IL/24JKT')

pasti error, dengan response:

 {
     "timestamp":"2024-05-17T06:24:01.223+0000",
     "status":404,
     "error":"Not Found",
     "message":"Not Found",
     "path":"/v2/00561/05/ADI-IL/24JKT/status"
}

path nya jadi tidak sesuai. Terima kasih.

Dan, jika mengguanakan Transaction::status($param), dimana $param tidak bisa menggunakan order_id, melainkan harus transaction_id

LuckyIndraEfendi commented 1 month ago

Ini waktu mau bikin handle Notification nya kan mas?