My company want to implement the Hosted Payments Overview for our client, I used the
Github Sample Code: https://github.com/ElementPS/HostedPayments.CSharp, when I tried to change TransactionSetupMethod to 7 for Store Card Data in PASS to Tokenize (and subsequently submit Sale using Token), I got the PaymentAccountType Required Error, Please advise.
Thanks
Hi Bill. You'll want to ensure you're including a PaymentAccountType of 0 (indicating a credit card) and a PaymentAccountReferenceNumber (your own identifier, perhaps a customer number, of the stored token) within your TransactionSetup request. The structure in your TransactionSetup XML request would look like the following:
<PaymentAccount>
<PaymentAccountReferenceNumber>INSERT</PaymentAccountReferenceNumber>
<PaymentAccountType>0</PaymentAccountType>
</PaymentAccount>