We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 to add multiple item in paypal request and also how to pass custom values.
The text was updated successfully, but these errors were encountered:
You can do that by creating multiple item instances.
$item_1 = new Item(); $item_1->setName('Item 1') /** item name **/ ->setCurrency('USD') ->setQuantity(1) ->setPrice(6.5); /** unit price **/ $item_list = new ItemList(); $item_list->setItems(array($item_1)); $item_2 = new Item(); $item_2->setName('Item 2') /** item name **/ ->setCurrency('USD') ->setQuantity(1) ->setPrice(23.5); /** unit price **/ $item_list = new ItemList(); $item_list->setItems(array($item_1, $item_2)); $amount = new Amount(); $amount->setCurrency('USD') ->setTotal(30); // $itme_1 + $item_2 total price
Sorry, something went wrong.
No branches or pull requests
How to add multiple item in paypal request and also how to pass custom values.
The text was updated successfully, but these errors were encountered: