PTNUSASATUINTIARTHA-DOKU / doku-woocommerce-plugin

Official WooCommerce Plugin for DOKU. Visit https://jokul.doku.com for more information about the product and https://jokul.doku.com/docs for the technical documentation.
6 stars 8 forks source link

AMOUNT NOT MATCH #22

Closed erikdemarco closed 2 years ago

erikdemarco commented 2 years ago
2022-01-25T04:08:40+00:00 JokulCheckoutService---> 66 : Jokul Checkout REQUEST : {"order":{"invoice_number":"66","line_items":[{"name":"Beanie with Logo","price":"18","quantity":2001}],"amount":"36018.00","callback_url":"https:\/\/xxx.masuk.id\/wp\/checkout\/order-received\/66\/?key=wc_order_VHf4dLfsyhQoS&66","currency":"IDR"},"payment":{"payment_due_date":"60"},"customer":{"id":1,"name":"test ajaax","email":"dede@ggmail.com","phone":"4234242424","country":"ID","address":""},"additional_info":{"integration":{"name":"woocommerce-plugin","version":"1.3.3"}}}
2022-01-25T04:08:40+00:00 JokulCheckoutService---> 66 : Jokul Checkout REQUEST URL : https://api-sandbox.doku.com/checkout/v1/payment
2022-01-25T04:08:40+00:00 JokulCheckoutService---> 66 : Jokul Checkout RESPONSE : "{\"message\":[\"AMOUNT NOT MATCH\"]}"

price in line_items and price in amount should be converted to float. if not you will get "AMOUNT NOT MATCH" error. eventhough the amount is match.

dokudevex commented 2 years ago

sudah solve di versi 1.3.4