sdk-php
sdk-php copied to clipboard
How do you set tax?
If I don't set a tax, I get an error that tax is required. How do you set tax? It's not documented anywhere.
$transactionRequestType = new AnetAPI\TransactionRequestType();
$transactionRequestType->setTransactionType("authCaptureTransaction");
$transactionRequestType->setAmount(request('amt'));
$transactionRequestType->setTax('0.00');
This errors: Argument 1 passed to net\authorize\api\contract\v1\TransactionRequestType::setTax() must be an instance of net\authorize\api\contract\v1\ExtendedAmountType, string given
Sooo how?