Skip to content

Commit 7e75ac0

Browse files
committed
Minor tweaks to js formatting
1 parent 4f1dd93 commit 7e75ac0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Metadata/js/omnipay_PaypalRest.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@
114114

115115
onApprove: function (data, actions) {
116116
var isRecur = 1;
117-
var paymentToken = data['billingToken'];
117+
var paymentToken = data.billingToken;
118118
if (!paymentToken) {
119-
paymentToken = data['paymentID'];
119+
paymentToken = data.paymentID;
120120
isRecur = 0;
121121
}
122122

@@ -125,7 +125,7 @@
125125
if (crmSubmitButtons) {
126126
crmSubmitButtons.style.display = 'block';
127127
}
128-
document.getElementById('PayerID').value = data['payerID'];
128+
document.getElementById('PayerID').value = data.payerID;
129129
document.getElementById('payment_token').value = paymentToken;
130130

131131
CRM.$(CRM.payment.getBillingSubmit()).click();

0 commit comments

Comments
 (0)