Any help will be appreciated. Like I said, this is new to me (accepting credit card payments, that is).
After you have the nonce, you will use createTransactionRequest and use the Nonce for payment data as shown below:
<createTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"> <merchantAuthentication> <name>yours</name> <transactionKey>yours</transactionKey> </merchantAuthentication> <transactionRequest> <transactionType>authCaptureTransaction</transactionType> <amount>75.00</amount> <payment> <opaqueData> <dataDescriptor>COMMON.ACCEPT.INAPP.PAYMENT</dataDescriptor> <dataValue>nonce_here</dataValue > </opaqueData> </payment> </transactionRequest> </createTransactionRequest>
While it may be possible to do this on a single page, it is more likely that you'll take the results from your call to Accept.js POST them to a separate page that will perform the actual API submission to ANET.