[Malaysia] New payment #1

Closed
opened 2025-06-11 17:27:50 +07:00 by pakin · 3 comments
Owner

Port new payment from Thai

  • check files
  • check flows
  • cloning
  • tests
Port new payment from Thai - [x] check files - [x] check flows - [x] cloning - [x] tests
pakin added the
enhancement
label 2025-06-11 17:27:50 +07:00
pakin self-assigned this 2025-06-11 17:27:50 +07:00
pakin added this to the Taobin International project 2025-06-11 17:27:50 +07:00
pakin added reference masterpiece 2025-06-11 17:29:36 +07:00
Author
Owner

Testing with 210018 and 210055. Waiting for stable

Testing with 210018 and 210055. Waiting for stable
Author
Owner

Bug: TSID is not set with SetPay
Cause: get TSID too early and final process only checked if TSID is not set yet.

Note: This happened mostly in case Coupon. CreditCard and QR are fine.

Solution

page_brewing3_event.lxml,page_brewing3Conti_event.lxml

<EventActionOk>

    DEBUGVAR Seeker.VendingTSID
    DEBUGVAR VendingTSID
    If Seeker.VendingTSID = "" Then
        DEBUGVAR Seeker.VendingTSID
        DEBUGVAR VendingTSID
        If VendingTSID = "" Then


        Else
            Var Seeker.VendingTSID = VendingTSID

            If New_PaymentInter = 1 Then
     			__CMD "SetPay" "coffee-payment"  Seeker.VendingTSID Seeker.ORDER_ID
      		EndIf
        EndIf

        DEBUGVAR Seeker.VendingTSID
        DEBUGVAR VendingTSID

    EndIf


After inspecting the log, I found that EventActionOk is triggered and already get TSID, so we should be able to set it right away. Otherwise, this has to move into EventTimeout instead.

**Bug**: `TSID` is not set with `SetPay` **Cause**: get `TSID` too early and final process only checked if `TSID` is not set yet. **Note**: This happened mostly in case `Coupon`. `CreditCard` and `QR` are fine. **Solution** ``` page_brewing3_event.lxml,page_brewing3Conti_event.lxml <EventActionOk> DEBUGVAR Seeker.VendingTSID DEBUGVAR VendingTSID If Seeker.VendingTSID = "" Then DEBUGVAR Seeker.VendingTSID DEBUGVAR VendingTSID If VendingTSID = "" Then Else Var Seeker.VendingTSID = VendingTSID If New_PaymentInter = 1 Then __CMD "SetPay" "coffee-payment" Seeker.VendingTSID Seeker.ORDER_ID EndIf EndIf DEBUGVAR Seeker.VendingTSID DEBUGVAR VendingTSID EndIf ``` After inspecting the log, I found that `EventActionOk` is triggered and already get `TSID`, so we should be able to set it right away. Otherwise, this has to move into `EventTimeout` instead.
Author
Owner

Testing Verison: 1016

**Testing Verison**: 1016
pakin closed this issue 2025-08-28 08:14:46 +07:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: pakin/taobin_project#1
No description provided.