Skip to content

Commit 5927c52

Browse files
author
Elaman Nazarkulov
authored
Merge pull request #123 from OpenFuturePlatform/public-api-elaman
Snake case removed
2 parents d67109a + 323bae9 commit 5927c52

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

payment-chooser/src/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ function fetchTransactionData() {
5454
}
5555

5656
function 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;

0 commit comments

Comments
 (0)