{"action":"created","issue":{"url":"https://api.github.com/repos/paypal/adaptivepayments-sdk-php/issues/48","labels_url":"https://api.github.com/repos/paypal/adaptivepayments-sdk-php/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/paypal/adaptivepayments-sdk-php/issues/48/comments","events_url":"https://api.github.com/repos/paypal/adaptivepayments-sdk-php/issues/48/events","html_url":"https://github.com/paypal/adaptivepayments-sdk-php/issues/48","id":55366446,"number":48,"title":"Add the item description to my adaptive payment request","user":{"login":"shinesoftware","id":1553035,"avatar_url":"https://avatars.githubusercontent.com/u/1553035?v=3","gravatar_id":"","url":"https://api.github.com/users/shinesoftware","html_url":"https://github.com/shinesoftware","followers_url":"https://api.github.com/users/shinesoftware/followers","following_url":"https://api.github.com/users/shinesoftware/following{/other_user}","gists_url":"https://api.github.com/users/shinesoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/shinesoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shinesoftware/subscriptions","organizations_url":"https://api.github.com/users/shinesoftware/orgs","repos_url":"https://api.github.com/users/shinesoftware/repos","events_url":"https://api.github.com/users/shinesoftware/events{/privacy}","received_events_url":"https://api.github.com/users/shinesoftware/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/paypal/adaptivepayments-sdk-php/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-24T10:28:38Z","updated_at":"2015-09-15T14:39:25Z","closed_at":null,"body":"Hi guys,\r\n\r\nhow have I to add a description of the item at paypal payment page by the adaptive method? I need to complete the payment information like in this image: \r\n\r\n![ec-custom-orderdetails2](https://cloud.githubusercontent.com/assets/1553035/5887270/1ff0d790-a3c6-11e4-9a38-256535b9c17a.gif)\r\n\r\nIn the paypal documentation:  https://www.paypalobjects.com/webstatic/en_US/developer/docs/pdf/pp_adaptivepayments.pdf I have found the setPaymentOptions() method but I have not realized how to use it. Any code sample?\r\n\r\nI have read this thread and seems to me that it is a little bit difficult set the right data: https://github.com/paypal/adaptivepayments-sdk-ruby/issues/10\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/paypal/adaptivepayments-sdk-php/issues/comments/140415054","html_url":"https://github.com/paypal/adaptivepayments-sdk-php/issues/48#issuecomment-140415054","issue_url":"https://api.github.com/repos/paypal/adaptivepayments-sdk-php/issues/48","id":140415054,"user":{"login":"pp-randy","id":6819909,"avatar_url":"https://avatars.githubusercontent.com/u/6819909?v=3","gravatar_id":"","url":"https://api.github.com/users/pp-randy","html_url":"https://github.com/pp-randy","followers_url":"https://api.github.com/users/pp-randy/followers","following_url":"https://api.github.com/users/pp-randy/following{/other_user}","gists_url":"https://api.github.com/users/pp-randy/gists{/gist_id}","starred_url":"https://api.github.com/users/pp-randy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pp-randy/subscriptions","organizations_url":"https://api.github.com/users/pp-randy/orgs","repos_url":"https://api.github.com/users/pp-randy/repos","events_url":"https://api.github.com/users/pp-randy/events{/privacy}","received_events_url":"https://api.github.com/users/pp-randy/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T14:39:25Z","updated_at":"2015-09-15T14:39:25Z","body":"Item details can be specified using setPaymentOptions; however, you also need to use the embedded flow.  The above if you have 1 receiver you would supply the paykey to setPaymentOptions and have one receiver in the receiverOptions array. Line items can then be specified in invoiceData setting the items array values.\r\n\r\nIt would look like this:\r\n![ap_lineitems](https://cloud.githubusercontent.com/assets/6819909/9879560/8c6dab44-5b8d-11e5-95b5-d39a084441ea.png)\r\n\r\nSetPaymentOptions:\r\nhttps://developer.paypal.com/docs/classic/api/adaptive-payments/SetPaymentOptions_API_Operation/\r\n\r\nEmbedded flow: \r\nhttps://developer.paypal.com/docs/classic/adaptive-payments/ht_ap-embeddedPayment-curl-etc/"}}