diff --git a/src/services/payhereService.ts b/src/services/payhereService.ts index e40d9fc..27df5f6 100644 --- a/src/services/payhereService.ts +++ b/src/services/payhereService.ts @@ -125,9 +125,14 @@ class PayHereService { sandbox: payment.sandbox, orderId: payment.order_id, amount: payment.amount, - merchantId: payment.merchant_id + merchantId: payment.merchant_id, + currency: payment.currency, + hash: payment.hash, + customerEmail: payment.email }); + console.log('Full PayHere payment object:', payment); + // Setup callbacks window.payhere.onCompleted = function (paymentId: string) { console.log('Payment completed:', paymentId);