File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,9 @@ function fetchTransactionData() {
5454}
5555
5656function loadTransactionData ( result ) {
57- console . log ( "Load data : " + result . order_amount ) ;
58- amountSelector . innerHTML = `${ result . order_amount } ` + ` ${ currency } ` ;
59- leftAmount = result . order_amount - result . paid ;
57+ console . log ( "Load data : " + result . orderAmount ) ;
58+ amountSelector . innerHTML = `${ result . orderAmount } ` + ` ${ currency } ` ;
59+ leftAmount = result . orderAmount - result . paid ;
6060 remainingSelector . innerHTML = `${ leftAmount } ` + ` ${ currency } ` ;
6161
6262 if ( result . orderAmount <= result . paid ) {
@@ -130,11 +130,11 @@ async function openPaymentWidget() {
130130
131131 widgetData = await getAddressData ( OPEN_URL ) ;
132132
133- amountSelector . innerHTML = `${ widgetData . order_amount } ` + ` ${ currency } ` ;
134- leftAmount = widgetData . order_amount - widgetData . paid ;
133+ amountSelector . innerHTML = `${ widgetData . orderAmount } ` + ` ${ currency } ` ;
134+ leftAmount = widgetData . orderAmount - widgetData . paid ;
135135 remainingSelector . innerHTML = `${ leftAmount } ` + ` ${ currency } ` ;
136136
137- countdownTimer ( new Date ( `${ widgetData . order_date } ` ) . getTime ( ) , widgetData . order_amount , widgetData . paid ) ;
137+ countdownTimer ( new Date ( `${ widgetData . orderDate } ` ) . getTime ( ) , widgetData . orderAmount , widgetData . paid ) ;
138138
139139 const accordion = document . querySelector ( ".accordion" ) ;
140140 let i = 1 ;
You can’t perform that action at this time.
0 commit comments