Skip to content

Commit 7da040c

Browse files
committed
[FIX] pos_self_order_razorpay: enable payment capture with the razorpay terminal in kiosk.
Steps: Step 1: Setup Razorpay in KIOSK mode  Step 2: KIOSK pay via Razorpay devices  Step 3: Complete payment in devices  You'll see the payment isn't reflcate in the kiosk  Issue: An error occurs during payment processing. Cause: The fields in `pos.payment` for Razorpay were made generic, resulting in Razorpay-specific fields being unavailable in pos.payment. FIX: Replace the Razorpay-specific fields with the corresponding generic fields. task-4143894 closes odoo#178328 Signed-off-by: Adrien Guilliams (adgu) <[email protected]>
1 parent df8ff22 commit 7da040c

File tree

1 file changed

+6
-6
lines changed
  • addons/pos_self_order_razorpay/controllers

1 file changed

+6
-6
lines changed

addons/pos_self_order_razorpay/controllers/orders.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ def razorpay_payment_status(self, access_token, order_id, payment_data, payment_
2626
'transaction_id': razorpay_status_response.get('txnId'),
2727
'payment_status': razorpay_status_response.get('status'),
2828
'pos_order_id': order.id,
29-
'razorpay_authcode': razorpay_status_response.get('authCode'),
30-
'razorpay_card_scheme': razorpay_status_response.get('paymentCardBrand'),
31-
'razorpay_issuer_bank': razorpay_status_response.get('acquirerCode'),
32-
'razorpay_issuer_card_no': razorpay_status_response.get('cardLastFourDigit'),
33-
'razorpay_payment_method': razorpay_status_response.get('paymentMode'),
34-
'razorpay_reference_no': razorpay_status_response.get('externalRefNumber'),
29+
'payment_method_authcode': razorpay_status_response.get('authCode'),
30+
'card_brand': razorpay_status_response.get('paymentCardBrand'),
31+
'payment_method_issuer_bank': razorpay_status_response.get('acquirerCode'),
32+
'card_no': razorpay_status_response.get('cardLastFourDigit'),
33+
'payment_method_payment_mode': razorpay_status_response.get('paymentMode'),
34+
'payment_ref_no': razorpay_status_response.get('externalRefNumber'),
3535
'razorpay_reverse_ref_no': razorpay_status_response.get('reverseReferenceNumber'),
3636
})
3737

0 commit comments

Comments
 (0)