File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments