Skip to content

Commit da2a0d2

Browse files
committed
better commenting
1 parent 14526f0 commit da2a0d2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PaymentTransactions/charge-credit-card.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function chargeCreditCard($amount)
2525

2626
// Add the payment data to a paymentType object
2727
$paymentOne = new AnetAPI\PaymentType();
28-
$paymentOne->setOpaqueData($opaqueData);
28+
$paymentOne->setCreditCard($creditCard);
2929

3030
// Create order information
3131
$order = new AnetAPI\OrderType();
@@ -54,7 +54,7 @@ function chargeCreditCard($amount)
5454
$duplicateWindowSetting->setSettingName("duplicateWindow");
5555
$duplicateWindowSetting->setSettingValue("600");
5656

57-
// Create a transactionRequestType object and add the previous objects to it
57+
// Create a TransactionRequestType object and add the previous objects to it
5858
$transactionRequestType = new AnetAPI\TransactionRequestType();
5959
$transactionRequestType->setTransactionType("authCaptureTransaction");
6060
$transactionRequestType->setAmount($amount);

0 commit comments

Comments
 (0)