Using The Payment Nonce On Your Server
- Simply replace the credit card element of a createTransaction call with the opaqueData element where the dataValue contains the Encrypted Blob above. See CreateTransaction call in our API Reference. For example:
<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>