Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you set tax? #403

Open
octoxan opened this issue Dec 28, 2020 · 0 comments
Open

How do you set tax? #403

octoxan opened this issue Dec 28, 2020 · 0 comments

Comments

@octoxan
Copy link

octoxan commented Dec 28, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant