-
Notifications
You must be signed in to change notification settings - Fork 198
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
setLineItems and setLineItem private API function examples missing #116
Comments
Can you try using something like below:
I have based it on the charge-credit-card sample. |
An easier implementation would be this:
I've tested this and it works perfectly well. |
Thank you, setting the variable to the provided settype function worked.
$lineItem1 = new AnetAPI\LineItemType();
My concern is that these functions aren't referenced in API reference doc.
For example only lineitem is mentioned.
Thank you very much for this response to my inquiry.
Regards,
Zeshan
…On Thu, Jul 12, 2018, 12:57 PM Gabriel Broadwin Nongsiej < ***@***.***> wrote:
An easier implementation would be this:
$lineItem1 = new AnetAPI\LineItemType();
$lineItem1->setItemId("12345");
$lineItem1->setName("first");
$lineItem1->setDescription("Here's the first line item");
$lineItem1->setQuantity("2");
$lineItem1->setUnitPrice("7.99");
$transactionRequestType->addToLineItems($lineItem1);
I've tested this and it works perfectly well.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#116 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGXRY-eczN9yS5Z6axnDEErqGITiLS4Oks5uF3_ygaJpZM4VM5Md>
.
|
Hi Zeshan, We're sorry for the inconvenience. We will relay this information to the relevant teams and have them carry it forward. Do let us know if you have any other issues. If your issues are resolved, kindly close this issue. |
HI @gnongsie, Just to confirm, is the following correct understanding of what variables have this type function name designation?
In reference to API doc located here: Regards, |
Hi @zeshanb,
For further information, kindly refer to our PHP SDK. For your particular request, you can find further information of the fields here for Creating an Accept Payment Request and here for Getting a Hosted Payment Page Request. |
Hi there,
Please update the following sample-code-php example to include examples of private function calls needed to create lineItems:
sample-code-php/PaymentTransactions/get-an-accept-payment-page.php
During creation of transaction before requesting a hosted payment page. To add Lineitems to customer order, the private function examples are missing.
["order":"net\authorize\api\contract\v1\TransactionRequestType":private]=> NULL ["lineItems":"net\authorize\api\contract\v1\TransactionRequestType":private]
order->Lineitems is only superficially referenced in API documentation located here:
https://developer.authorize.net/api/reference/index.html#payment-transactions-create-an-accept-payment-transaction
There is only a python sdk example at the moment:
https://community.developer.authorize.net/t5/Integration-and-Testing/Adding-lineItems-in-python-sdk/m-p/59737/highlight/true#M34315
When trying to do the following:
API responds with this error:
PHP Fatal error: Call to a member function getItemId() on array
There seems to be private functions designated in API for this purpose but are not documented.
Thank you,
Zeshan
The text was updated successfully, but these errors were encountered: