add linepay & crdit card
This commit is contained in:
parent
c23958c151
commit
b715149249
12 changed files with 216 additions and 257 deletions
BIN
image/collectiing/bd_pay_with_shoppy.png
Normal file
BIN
image/collectiing/bd_pay_with_shoppy.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.8 KiB |
BIN
image/collectiing/bd_pay_with_true.png
Normal file
BIN
image/collectiing/bd_pay_with_true.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5 KiB |
BIN
image/collectiing_en/bd_pay_with_shoppy.png
Normal file
BIN
image/collectiing_en/bd_pay_with_shoppy.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.8 KiB |
BIN
image/collectiing_en/bd_pay_with_true.png
Normal file
BIN
image/collectiing_en/bd_pay_with_true.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5 KiB |
|
|
@ -14,7 +14,9 @@
|
||||||
DEBUGVAR SoundVolume
|
DEBUGVAR SoundVolume
|
||||||
|
|
||||||
|
|
||||||
|
Var eng_enable = "true"
|
||||||
|
Var thai_enable = "true"
|
||||||
|
|
||||||
Var show_eng = "false"
|
Var show_eng = "false"
|
||||||
Var NextOrder = "false"
|
Var NextOrder = "false"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -262,14 +262,24 @@
|
||||||
If RoadShow = "true" Then
|
If RoadShow = "true" Then
|
||||||
Var EnableSelectMenuBetweenBrewBlink = "Invisible"
|
Var EnableSelectMenuBetweenBrewBlink = "Invisible"
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
If Seeker.CreditCard = 1 Then
|
||||||
|
Var EnableSelectMenuBetweenBrewBlink = "Invisible"
|
||||||
|
Var EnableSelectMenuBetweenBrew = "Invisible"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
Var CreditCardVoid = 0
|
||||||
|
|
||||||
</EventOpen>
|
</EventOpen>
|
||||||
|
|
||||||
|
|
||||||
<EventActionOk>
|
<EventActionOk>
|
||||||
|
|
||||||
|
If CreditCardVoid = 1 Then
|
||||||
|
Var ChangeOK = 2
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
If ActionOKCase = 1 Then
|
If ActionOKCase = 1 Then
|
||||||
If Seeker.CodeChannel = 1 Then
|
If Seeker.CodeChannel = 1 Then
|
||||||
|
|
@ -567,27 +577,7 @@
|
||||||
Var SuggestID = ""
|
Var SuggestID = ""
|
||||||
Var SessionID2 = ""
|
Var SessionID2 = ""
|
||||||
|
|
||||||
If Seeker.CreditCard = 1 Then
|
|
||||||
Var SessionID2 = SelectSlot + ":"
|
|
||||||
Var SessionID2 = SessionID2 + ExtendData
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + ""
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + "CC01"
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + SelectDrink
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + BoxID
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + "S"
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + Seeker.CreditCardRef
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
|
|
||||||
CashlessReq FAIL
|
|
||||||
|
|
||||||
EndIf
|
|
||||||
|
|
||||||
Pay ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceAmount2 ServiceCharge Donate
|
Pay ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceAmount2 ServiceCharge Donate
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -650,26 +640,7 @@
|
||||||
Var SuggestID = ""
|
Var SuggestID = ""
|
||||||
Var SessionID2 = ""
|
Var SessionID2 = ""
|
||||||
|
|
||||||
If Seeker.CreditCard = 1 Then
|
|
||||||
Var SessionID2 = SelectSlot + ":"
|
|
||||||
Var SessionID2 = SessionID2 + ExtendData
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + ""
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + "CC01"
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + SelectDrink
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + BoxID
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + "S"
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + Seeker.CreditCardRef
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
|
|
||||||
CashlessReq FAIL
|
|
||||||
|
|
||||||
EndIf
|
|
||||||
|
|
||||||
Pay ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceAmount2 ServiceCharge Donate
|
Pay ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceAmount2 ServiceCharge Donate
|
||||||
|
|
||||||
|
|
@ -835,21 +806,9 @@
|
||||||
Else
|
Else
|
||||||
|
|
||||||
If Seeker.CreditCard = 1 Then
|
If Seeker.CreditCard = 1 Then
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + ""
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + "CC01"
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + SelectDrink
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + BoxID
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + "S"
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + Seeker.CreditCardRef
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
|
|
||||||
CashlessReq SUCCESS
|
CashlessReq SUCCESS
|
||||||
|
;CashlessReq FAIL
|
||||||
|
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
|
@ -904,42 +863,51 @@
|
||||||
|
|
||||||
|
|
||||||
If Seeker.PayWithQR = 0 Then
|
If Seeker.PayWithQR = 0 Then
|
||||||
If Seeker.CodeChannel = 0 Then
|
|
||||||
If ChangeFlag = 0 Then
|
|
||||||
Var ChangeFlag = 1
|
|
||||||
|
|
||||||
If Seeker.StoreCreditFlag = 1 Then
|
|
||||||
Var ChangeOK = 2
|
|
||||||
Else
|
|
||||||
If GetFreeFromError = 1 Then
|
|
||||||
Var ChangeOK = 2
|
|
||||||
Else
|
|
||||||
Change ServiceAmount2
|
|
||||||
EndIf
|
|
||||||
|
|
||||||
EndIf
|
|
||||||
|
|
||||||
EndIf
|
|
||||||
|
|
||||||
|
If Seeker.CreditCard = 1 Then
|
||||||
|
CashlessReq FAIL
|
||||||
|
Var ChangeFlag = 1
|
||||||
|
Var CreditCardVoid = 1
|
||||||
Else
|
Else
|
||||||
|
|
||||||
If CoinAmount > 0 Then
|
If Seeker.CodeChannel = 0 Then
|
||||||
|
|
||||||
If ChangeFlag = 0 Then
|
If ChangeFlag = 0 Then
|
||||||
Var ChangeFlag = 1
|
Var ChangeFlag = 1
|
||||||
Var ServiceAmount3 = ServiceAmount2 - Seeker.IntVendingCampaign
|
|
||||||
|
|
||||||
If Seeker.StoreCreditFlag = 1 Then
|
If Seeker.StoreCreditFlag = 1 Then
|
||||||
Var ChangeOK = 2
|
Var ChangeOK = 2
|
||||||
Else
|
Else
|
||||||
Change ServiceAmount3
|
If GetFreeFromError = 1 Then
|
||||||
|
Var ChangeOK = 2
|
||||||
|
Else
|
||||||
|
Change ServiceAmount2
|
||||||
|
EndIf
|
||||||
|
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
EndIf
|
EndIf
|
||||||
Else
|
|
||||||
Var ChangeOK = 2
|
|
||||||
EndIf
|
|
||||||
|
|
||||||
|
Else
|
||||||
|
|
||||||
|
If CoinAmount > 0 Then
|
||||||
|
|
||||||
|
If ChangeFlag = 0 Then
|
||||||
|
Var ChangeFlag = 1
|
||||||
|
Var ServiceAmount3 = ServiceAmount2 - Seeker.IntVendingCampaign
|
||||||
|
|
||||||
|
If Seeker.StoreCreditFlag = 1 Then
|
||||||
|
Var ChangeOK = 2
|
||||||
|
Else
|
||||||
|
Change ServiceAmount3
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
Else
|
||||||
|
Var ChangeOK = 2
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -142,11 +142,20 @@
|
||||||
Var StrawStateX = "Invisible"
|
Var StrawStateX = "Invisible"
|
||||||
Var LidStateX = "Invisible"
|
Var LidStateX = "Invisible"
|
||||||
|
|
||||||
|
If Seeker.CreditCard = 1 Then
|
||||||
|
Var EnableSelectMenuBetweenBrew = "Invisible"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var CreditCardVoid = 0
|
||||||
|
|
||||||
</EventOpen>
|
</EventOpen>
|
||||||
|
|
||||||
|
|
||||||
<EventActionOk>
|
<EventActionOk>
|
||||||
|
|
||||||
|
If CreditCardVoid = 1 Then
|
||||||
|
Var ChangeOK = 2
|
||||||
|
EndIf
|
||||||
|
|
||||||
If ActionOKCase = 1 Then
|
If ActionOKCase = 1 Then
|
||||||
If Seeker.CodeChannel = 1 Then
|
If Seeker.CodeChannel = 1 Then
|
||||||
|
|
@ -416,26 +425,7 @@
|
||||||
Var SuggestID = ""
|
Var SuggestID = ""
|
||||||
Var SessionID2 = ""
|
Var SessionID2 = ""
|
||||||
|
|
||||||
If Seeker.CreditCard = 1 Then
|
|
||||||
Var SessionID2 = SelectSlot + ":"
|
|
||||||
Var SessionID2 = SessionID2 + ExtendData
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + ""
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + "CC01"
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + SelectDrink
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + BoxID
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + "S"
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + Seeker.CreditCardRef
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
|
|
||||||
CashlessReq FAIL
|
|
||||||
|
|
||||||
EndIf
|
|
||||||
|
|
||||||
Pay ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceAmount2 ServiceCharge Donate
|
Pay ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceAmount2 ServiceCharge Donate
|
||||||
|
|
||||||
|
|
@ -490,26 +480,7 @@
|
||||||
Var SuggestID = ""
|
Var SuggestID = ""
|
||||||
Var SessionID2 = ""
|
Var SessionID2 = ""
|
||||||
|
|
||||||
If Seeker.CreditCard = 1 Then
|
|
||||||
Var SessionID2 = SelectSlot + ":"
|
|
||||||
Var SessionID2 = SessionID2 + ExtendData
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + ""
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + "CC01"
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + SelectDrink
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + BoxID
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + "S"
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + Seeker.CreditCardRef
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
|
|
||||||
CashlessReq FAIL
|
|
||||||
|
|
||||||
EndIf
|
|
||||||
|
|
||||||
Pay ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceAmount2 ServiceCharge Donate
|
Pay ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceAmount2 ServiceCharge Donate
|
||||||
|
|
||||||
|
|
@ -670,21 +641,10 @@
|
||||||
Else
|
Else
|
||||||
|
|
||||||
If Seeker.CreditCard = 1 Then
|
If Seeker.CreditCard = 1 Then
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + ""
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + "CC01"
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + SelectDrink
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + BoxID
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + "S"
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + Seeker.CreditCardRef
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
|
|
||||||
CashlessReq SUCCESS
|
CashlessReq SUCCESS
|
||||||
|
;CashlessReq FAIL
|
||||||
|
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
|
@ -743,43 +703,52 @@
|
||||||
|
|
||||||
|
|
||||||
If Seeker.PayWithQR = 0 Then
|
If Seeker.PayWithQR = 0 Then
|
||||||
If Seeker.CodeChannel = 0 Then
|
|
||||||
If ChangeFlag = 0 Then
|
|
||||||
Var ChangeFlag = 1
|
|
||||||
|
|
||||||
If Seeker.StoreCreditFlag = 1 Then
|
|
||||||
Var ChangeOK = 2
|
|
||||||
Else
|
|
||||||
If GetFreeFromError = 1 Then
|
|
||||||
Var ChangeOK = 2
|
|
||||||
Else
|
|
||||||
Change ServiceAmount2
|
|
||||||
EndIf
|
|
||||||
|
|
||||||
EndIf
|
|
||||||
|
|
||||||
EndIf
|
|
||||||
|
|
||||||
|
If Seeker.CreditCard = 1 Then
|
||||||
|
CashlessReq FAIL
|
||||||
|
Var ChangeFlag = 1
|
||||||
|
Var CreditCardVoid = 1
|
||||||
Else
|
Else
|
||||||
|
|
||||||
|
|
||||||
If CoinAmount > 0 Then
|
If Seeker.CodeChannel = 0 Then
|
||||||
|
|
||||||
If ChangeFlag = 0 Then
|
If ChangeFlag = 0 Then
|
||||||
Var ChangeFlag = 1
|
Var ChangeFlag = 1
|
||||||
Var ServiceAmount3 = ServiceAmount2 - Seeker.IntVendingCampaign
|
|
||||||
|
|
||||||
If Seeker.StoreCreditFlag = 1 Then
|
If Seeker.StoreCreditFlag = 1 Then
|
||||||
Var ChangeOK = 2
|
Var ChangeOK = 2
|
||||||
Else
|
Else
|
||||||
Change ServiceAmount3
|
If GetFreeFromError = 1 Then
|
||||||
|
Var ChangeOK = 2
|
||||||
|
Else
|
||||||
|
Change ServiceAmount2
|
||||||
|
EndIf
|
||||||
|
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
Else
|
Else
|
||||||
Var ChangeOK = 2
|
|
||||||
|
If CoinAmount > 0 Then
|
||||||
|
|
||||||
|
If ChangeFlag = 0 Then
|
||||||
|
Var ChangeFlag = 1
|
||||||
|
Var ServiceAmount3 = ServiceAmount2 - Seeker.IntVendingCampaign
|
||||||
|
|
||||||
|
If Seeker.StoreCreditFlag = 1 Then
|
||||||
|
Var ChangeOK = 2
|
||||||
|
Else
|
||||||
|
Change ServiceAmount3
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
Else
|
||||||
|
Var ChangeOK = 2
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
Else
|
Else
|
||||||
|
|
|
||||||
|
|
@ -226,11 +226,17 @@
|
||||||
|
|
||||||
DEBUGVAR VendingCampaign
|
DEBUGVAR VendingCampaign
|
||||||
|
|
||||||
|
Var CreditCardVoid = 0
|
||||||
|
|
||||||
|
|
||||||
</EventOpen>
|
</EventOpen>
|
||||||
|
|
||||||
<EventActionOk>
|
<EventActionOk>
|
||||||
|
|
||||||
|
If CreditCardVoid = 1 Then
|
||||||
|
Var ChangeOK = 2
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
If ActionOKCase = 1 Then
|
If ActionOKCase = 1 Then
|
||||||
If Seeker.CodeChannel = 1 Then
|
If Seeker.CodeChannel = 1 Then
|
||||||
|
|
@ -463,27 +469,6 @@
|
||||||
Var SuggestID = ""
|
Var SuggestID = ""
|
||||||
Var SessionID2 = ""
|
Var SessionID2 = ""
|
||||||
|
|
||||||
If Seeker.CreditCard = 1 Then
|
|
||||||
Var SessionID2 = SelectSlot + ":"
|
|
||||||
Var SessionID2 = SessionID2 + ExtendData
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + ""
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + "CC01"
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + SelectDrink
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + BoxID
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + "S"
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + Seeker.CreditCardRef
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
|
|
||||||
CashlessReq FAIL
|
|
||||||
|
|
||||||
EndIf
|
|
||||||
|
|
||||||
|
|
||||||
Pay ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceAmount2 ServiceCharge Donate
|
Pay ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceAmount2 ServiceCharge Donate
|
||||||
|
|
||||||
|
|
@ -551,27 +536,6 @@
|
||||||
Var SuggestID = ""
|
Var SuggestID = ""
|
||||||
Var SessionID2 = ""
|
Var SessionID2 = ""
|
||||||
|
|
||||||
If Seeker.CreditCard = 1 Then
|
|
||||||
Var SessionID2 = SelectSlot + ":"
|
|
||||||
Var SessionID2 = SessionID2 + ExtendData
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + ""
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + "CC01"
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + SelectDrink
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + BoxID
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + "S"
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
Var SessionID2 = SessionID2 + Seeker.CreditCardRef
|
|
||||||
Var SessionID2 = SessionID2 + "/"
|
|
||||||
|
|
||||||
CashlessReq FAIL
|
|
||||||
|
|
||||||
EndIf
|
|
||||||
|
|
||||||
|
|
||||||
Pay ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceAmount2 ServiceCharge Donate
|
Pay ServiceType TelephoneNumber ServiceCredit SuggestID SessionID2 ServiceAmount2 ServiceCharge Donate
|
||||||
|
|
||||||
|
|
@ -666,43 +630,52 @@
|
||||||
|
|
||||||
|
|
||||||
If Seeker.PayWithQR = 0 Then
|
If Seeker.PayWithQR = 0 Then
|
||||||
If Seeker.CodeChannel = 0 Then
|
|
||||||
If ChangeFlag = 0 Then
|
|
||||||
Var ChangeFlag = 1
|
|
||||||
|
|
||||||
If Seeker.StoreCreditFlag = 1 Then
|
|
||||||
Var ChangeOK = 2
|
|
||||||
Else
|
|
||||||
If GetFreeFromError = 1 Then
|
|
||||||
Var ChangeOK = 2
|
|
||||||
Else
|
|
||||||
Change ServiceAmount2
|
|
||||||
EndIf
|
|
||||||
|
|
||||||
EndIf
|
|
||||||
|
|
||||||
EndIf
|
|
||||||
|
|
||||||
|
If Seeker.CreditCard = 1 Then
|
||||||
|
CashlessReq FAIL
|
||||||
|
Var ChangeFlag = 1
|
||||||
|
Var CreditCardVoid = 1
|
||||||
Else
|
Else
|
||||||
|
|
||||||
|
|
||||||
If CoinAmount > 0 Then
|
If Seeker.CodeChannel = 0 Then
|
||||||
|
|
||||||
If ChangeFlag = 0 Then
|
If ChangeFlag = 0 Then
|
||||||
Var ChangeFlag = 1
|
Var ChangeFlag = 1
|
||||||
Var ServiceAmount3 = ServiceAmount2 - Seeker.IntVendingCampaign
|
|
||||||
|
|
||||||
If Seeker.StoreCreditFlag = 1 Then
|
If Seeker.StoreCreditFlag = 1 Then
|
||||||
Var ChangeOK = 2
|
Var ChangeOK = 2
|
||||||
Else
|
Else
|
||||||
Change ServiceAmount3
|
If GetFreeFromError = 1 Then
|
||||||
|
Var ChangeOK = 2
|
||||||
|
Else
|
||||||
|
Change ServiceAmount2
|
||||||
|
EndIf
|
||||||
|
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
Else
|
Else
|
||||||
Var ChangeOK = 2
|
|
||||||
|
If CoinAmount > 0 Then
|
||||||
|
|
||||||
|
If ChangeFlag = 0 Then
|
||||||
|
Var ChangeFlag = 1
|
||||||
|
Var ServiceAmount3 = ServiceAmount2 - Seeker.IntVendingCampaign
|
||||||
|
|
||||||
|
If Seeker.StoreCreditFlag = 1 Then
|
||||||
|
Var ChangeOK = 2
|
||||||
|
Else
|
||||||
|
Change ServiceAmount3
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
Else
|
||||||
|
Var ChangeOK = 2
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
Else
|
Else
|
||||||
|
|
|
||||||
|
|
@ -20,12 +20,12 @@
|
||||||
|
|
||||||
If show_eng = "true" Then
|
If show_eng = "true" Then
|
||||||
Var DirImage = "ROOT/taobin_project/image/collect_point1_en"
|
Var DirImage = "ROOT/taobin_project/image/collect_point1_en"
|
||||||
Play "ROOT/taobin_project/sound_eng/Reward_final.mp3"
|
;Play "ROOT/taobin_project/sound_eng/Reward_final.mp3"
|
||||||
|
|
||||||
Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2_eng.png"
|
Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2_eng.png"
|
||||||
Else
|
Else
|
||||||
Var DirImage = "ROOT/taobin_project/image/collect_point1"
|
Var DirImage = "ROOT/taobin_project/image/collect_point1"
|
||||||
Play "ROOT/taobin_project/sound_thai/dontforget_number.mp3"
|
;Play "ROOT/taobin_project/sound_thai/dontforget_number.mp3"
|
||||||
|
|
||||||
Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2.png"
|
Var IMG_CNT = "ROOT/taobin_project/image/page_doing/img2.png"
|
||||||
EndIf
|
EndIf
|
||||||
|
|
@ -69,6 +69,13 @@
|
||||||
Var number10 = ""
|
Var number10 = ""
|
||||||
|
|
||||||
If web_telnumOK = "" Then
|
If web_telnumOK = "" Then
|
||||||
|
|
||||||
|
If show_eng = "true" Then
|
||||||
|
Play "ROOT/taobin_project/sound_eng/Reward_final.mp3"
|
||||||
|
Else
|
||||||
|
Play "ROOT/taobin_project/sound_thai/dontforget_number.mp3"
|
||||||
|
EndIf
|
||||||
|
|
||||||
Else
|
Else
|
||||||
Var TelephoneNumber = web_telnumOK
|
Var TelephoneNumber = web_telnumOK
|
||||||
Var StepGetPoint = 1
|
Var StepGetPoint = 1
|
||||||
|
|
|
||||||
|
|
@ -179,7 +179,7 @@
|
||||||
SAVELOG "Cash only IntVendingCampaign"
|
SAVELOG "Cash only IntVendingCampaign"
|
||||||
Var PayState2 = "Disable"
|
Var PayState2 = "Disable"
|
||||||
Var PayState4 = "Disable"
|
Var PayState4 = "Disable"
|
||||||
Var PayState5 = "Disable"
|
Var PayState5 = "Enable"
|
||||||
Var PayState6 = "Disable"
|
Var PayState6 = "Disable"
|
||||||
EndIf
|
EndIf
|
||||||
Var PayState3 = "Enable"
|
Var PayState3 = "Enable"
|
||||||
|
|
@ -204,6 +204,8 @@
|
||||||
Var PayState6 = "Disable"
|
Var PayState6 = "Disable"
|
||||||
EndIf
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Var showRemaining = charOfBaht + RemainAmountStr
|
Var showRemaining = charOfBaht + RemainAmountStr
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
Var Timeout = 0
|
Var Timeout = 0
|
||||||
|
|
||||||
Var GetPayInfoFlag = 0
|
Var GetPayInfoFlag = 0
|
||||||
Var Seeker.CodeChannel = 0
|
;Var Seeker.CodeChannel = 0
|
||||||
|
|
||||||
;Var VendingQRCode = "ERROR"
|
;Var VendingQRCode = "ERROR"
|
||||||
;VendingQR ON
|
;VendingQR ON
|
||||||
|
|
@ -36,6 +36,24 @@
|
||||||
Var TelephoneNumber# = ""
|
Var TelephoneNumber# = ""
|
||||||
|
|
||||||
Var PlaySoundLag = ""
|
Var PlaySoundLag = ""
|
||||||
|
|
||||||
|
Var InvisibleCCard = "Invisible"
|
||||||
|
If Seeker = "next" Then
|
||||||
|
|
||||||
|
Var SeekerCurr = "curr"
|
||||||
|
If SeekerCurr.CreditCard = 1 Then
|
||||||
|
Var InvisibleCCard = "Enable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var WalletEnable = "Enable"
|
||||||
|
If Seeker.IntVendingCampaign > 0 Then
|
||||||
|
DEBUGVAR "Discount Disable Wallet"
|
||||||
|
Var WalletEnable = "Disable"
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
Var InvisibleCCard = "Enable"
|
||||||
|
|
||||||
</EventOpen>
|
</EventOpen>
|
||||||
<Timeout> 1000 </Timeout>
|
<Timeout> 1000 </Timeout>
|
||||||
|
|
@ -51,8 +69,8 @@
|
||||||
|
|
||||||
Var PayState1 = "PressForever"
|
Var PayState1 = "PressForever"
|
||||||
Var PayState2 = "Enable"
|
Var PayState2 = "Enable"
|
||||||
Var QRChannel = 0
|
;Var QRChannel = 0
|
||||||
Var Seeker.CodeChannel = 0
|
;Var Seeker.CodeChannel = 0
|
||||||
If CART_COUNT >= 1 Then
|
If CART_COUNT >= 1 Then
|
||||||
Open "ROOT/taobin_project/xml/page_payment_cashMore.xml"
|
Open "ROOT/taobin_project/xml/page_payment_cashMore.xml"
|
||||||
Else
|
Else
|
||||||
|
|
@ -133,10 +151,10 @@
|
||||||
<Button>
|
<Button>
|
||||||
<X> 209 </X>
|
<X> 209 </X>
|
||||||
<Y> 888 </Y>
|
<Y> 888 </Y>
|
||||||
<State> "Enable" </State>
|
<State> WalletEnable </State>
|
||||||
<Filename> "ROOT/taobin_project/image/collectiing/bn_pay_with_true.png" </Filename>
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_pay_with_true.png" </Filename>
|
||||||
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_pay_with_true.png" </FilenamePress>
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_pay_with_true.png" </FilenamePress>
|
||||||
<FilenameDisable> "ROOT/taobin_project/image/collectiing/bp_pay_with_true.png" </FilenameDisable>
|
<FilenameDisable> "ROOT/taobin_project/image/collectiing/bd_pay_with_true.png" </FilenameDisable>
|
||||||
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
<Volume> SoundVolume </Volume>
|
<Volume> SoundVolume </Volume>
|
||||||
<EventClick>
|
<EventClick>
|
||||||
|
|
@ -200,10 +218,10 @@
|
||||||
<Button>
|
<Button>
|
||||||
<X> 441 </X>
|
<X> 441 </X>
|
||||||
<Y> 888 </Y>
|
<Y> 888 </Y>
|
||||||
<State> "Enable" </State>
|
<State> WalletEnable </State>
|
||||||
<Filename> "ROOT/taobin_project/image/collectiing/bn_pay_with_shoppy.png" </Filename>
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_pay_with_shoppy.png" </Filename>
|
||||||
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_pay_with_shoppy.png" </FilenamePress>
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_pay_with_shoppy.png" </FilenamePress>
|
||||||
<FilenameDisable> "ROOT/taobin_project/image/collectiing/bp_pay_with_shoppy.png" </FilenameDisable>
|
<FilenameDisable> "ROOT/taobin_project/image/collectiing/bd_pay_with_shoppy.png" </FilenameDisable>
|
||||||
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
<Volume> SoundVolume </Volume>
|
<Volume> SoundVolume </Volume>
|
||||||
<EventClick>
|
<EventClick>
|
||||||
|
|
@ -266,10 +284,10 @@
|
||||||
<Button>
|
<Button>
|
||||||
<X> 673 </X>
|
<X> 673 </X>
|
||||||
<Y> 888 </Y>
|
<Y> 888 </Y>
|
||||||
<State> "Enable" </State>
|
<State> WalletEnable </State>
|
||||||
<Filename> "ROOT/taobin_project/image/collectiing/bn_pay_with_dolfin.png" </Filename>
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_pay_with_dolfin.png" </Filename>
|
||||||
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_pay_with_dolfin.png" </FilenamePress>
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_pay_with_dolfin.png" </FilenamePress>
|
||||||
<FilenameDisable> "ROOT/taobin_project/image/collectiing/bp_pay_with_dolfin.png" </FilenameDisable>
|
<FilenameDisable> "ROOT/taobin_project/image/collectiing/bd_pay_with_dolfin.png" </FilenameDisable>
|
||||||
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
<Sound> "ROOT/sounds/codebuttom.wav" </Sound>
|
||||||
<Volume> SoundVolume </Volume>
|
<Volume> SoundVolume </Volume>
|
||||||
<EventClick>
|
<EventClick>
|
||||||
|
|
@ -331,7 +349,7 @@
|
||||||
<Button>
|
<Button>
|
||||||
<X> 209 </X>
|
<X> 209 </X>
|
||||||
<Y> 1112 </Y>
|
<Y> 1112 </Y>
|
||||||
<State> "Enable" </State>
|
<State> WalletEnable </State>
|
||||||
<Filename> "ROOT/taobin_project/image/collectiing/bn_pay_with_linepay.png" </Filename>
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_pay_with_linepay.png" </Filename>
|
||||||
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_pay_with_linepay.png" </FilenamePress>
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bp_pay_with_linepay.png" </FilenamePress>
|
||||||
<FilenameDisable> "ROOT/taobin_project/image/collectiing/bd_pay_with_linepay.png" </FilenameDisable>
|
<FilenameDisable> "ROOT/taobin_project/image/collectiing/bd_pay_with_linepay.png" </FilenameDisable>
|
||||||
|
|
@ -396,7 +414,7 @@
|
||||||
<Button>
|
<Button>
|
||||||
<X> 209 </X>
|
<X> 209 </X>
|
||||||
<Y> 1112 </Y>
|
<Y> 1112 </Y>
|
||||||
<State> "Enable" </State>
|
<State> "Invisible" </State>
|
||||||
<Filename> "ROOT/taobin_project/image/collectiing/bn_pay_with_codeXXX.png" </Filename>
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_pay_with_codeXXX.png" </Filename>
|
||||||
<FilenamePress> "ROOT/taobin_project/image/collectiing/bn_pay_with_codeXXX.png" </FilenamePress>
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bn_pay_with_codeXXX.png" </FilenamePress>
|
||||||
<FilenameDisable> "ROOT/taobin_project/image/collectiing/bn_pay_with_codeXXX.png" </FilenameDisable>
|
<FilenameDisable> "ROOT/taobin_project/image/collectiing/bn_pay_with_codeXXX.png" </FilenameDisable>
|
||||||
|
|
@ -432,7 +450,7 @@
|
||||||
<Button>
|
<Button>
|
||||||
<X> 441 </X>
|
<X> 441 </X>
|
||||||
<Y> 1112 </Y>
|
<Y> 1112 </Y>
|
||||||
<State> "Enable" </State>
|
<State> InvisibleCCard </State>
|
||||||
<Filename> "ROOT/taobin_project/image/collectiing/bn_pay_with_codeXXX.png" </Filename>
|
<Filename> "ROOT/taobin_project/image/collectiing/bn_pay_with_codeXXX.png" </Filename>
|
||||||
<FilenamePress> "ROOT/taobin_project/image/collectiing/bn_pay_with_codeXXX.png" </FilenamePress>
|
<FilenamePress> "ROOT/taobin_project/image/collectiing/bn_pay_with_codeXXX.png" </FilenamePress>
|
||||||
<FilenameDisable> "ROOT/taobin_project/image/collectiing/bn_pay_with_codeXXX.png" </FilenameDisable>
|
<FilenameDisable> "ROOT/taobin_project/image/collectiing/bn_pay_with_codeXXX.png" </FilenameDisable>
|
||||||
|
|
@ -471,8 +489,8 @@
|
||||||
<EventClick>
|
<EventClick>
|
||||||
Var PayState1 = "PressForever"
|
Var PayState1 = "PressForever"
|
||||||
Var PayState2 = "Enable"
|
Var PayState2 = "Enable"
|
||||||
Var QRChannel = 0
|
;Var QRChannel = 0
|
||||||
Var Seeker.CodeChannel = 0
|
;Var Seeker.CodeChannel = 0
|
||||||
If CART_COUNT >= 1 Then
|
If CART_COUNT >= 1 Then
|
||||||
Open "ROOT/taobin_project/xml/page_payment_cashMore.xml"
|
Open "ROOT/taobin_project/xml/page_payment_cashMore.xml"
|
||||||
Else
|
Else
|
||||||
|
|
|
||||||
|
|
@ -172,22 +172,42 @@
|
||||||
|
|
||||||
If Seeker.PayWithQR = 0 Then
|
If Seeker.PayWithQR = 0 Then
|
||||||
If Seeker.FreeVendingCampaign = 0 Then
|
If Seeker.FreeVendingCampaign = 0 Then
|
||||||
If Seeker.IntVendingCampaign < PayAmount Then
|
|
||||||
Var SumCoinAmount = CoinAmount + Seeker.IntVendingCampaign
|
|
||||||
Var SumCoinAmount = SumCoinAmount + Seeker.IntVendingCredit
|
|
||||||
|
|
||||||
If SumCoinAmount >= PayAmount Then
|
|
||||||
Var Canout = SumCoinAmount - PayAmount
|
If Seeker.CreditCard = 1 Then
|
||||||
If Canout > 0 Then
|
|
||||||
|
DEBUGVAR CoinAmount
|
||||||
;Change Canout
|
|
||||||
;Var ChangeFlag2 = 1
|
If CoinAmount > 0 Then
|
||||||
Var GotoStoreCredit0 = 1
|
DEBUGVAR "Change Canout"
|
||||||
Var StoreCreditAmount = Canout
|
Change CoinAmount
|
||||||
|
Var ChangeFlag2 = 1
|
||||||
EndIf
|
EndIf
|
||||||
EndIf
|
|
||||||
EndIf
|
Else
|
||||||
|
|
||||||
|
If Seeker.IntVendingCampaign < PayAmount Then
|
||||||
|
Var SumCoinAmount = CoinAmount + Seeker.IntVendingCampaign
|
||||||
|
Var SumCoinAmount = SumCoinAmount + Seeker.IntVendingCredit
|
||||||
|
|
||||||
|
If SumCoinAmount >= PayAmount Then
|
||||||
|
Var Canout = SumCoinAmount - PayAmount
|
||||||
|
If Canout > 0 Then
|
||||||
|
|
||||||
|
;Change Canout
|
||||||
|
;Var ChangeFlag2 = 1
|
||||||
|
Var GotoStoreCredit0 = 1
|
||||||
|
Var StoreCreditAmount = Canout
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Else
|
Else
|
||||||
|
|
||||||
Var Canout = CoinAmount
|
Var Canout = CoinAmount
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue