paypal_adaptive
paypal_adaptive copied to clipboard
how can you specify item title?
where can you specify the item's title or description?
Sorry but I don't understand your question.
when u specify the params to the adaptive payments (including price and mails for each receiver) you need to specify the invoice info (what will appear in the buyer invoice) as well right? where can you specify what is the name or title for each item you sell so it will appear in both of the buyer 'pay with paypal' page and invoice?
Take a look at the schema here: https://github.com/tc/paypal_adaptive/blob/master/lib/pay_request_schema.json
You can probably use the "memo" field.

tried to use the "memo" field. doesn't work. it doesn't change the title or add any description.
Hey,
this seems to be usually done by the setPaymentOptions API (https://www.x.com/developers/paypal/documentation-tools/api/setpaymentoptions-api-operation) and then receiverOptions -> invoiceData -> item -> name But I can't get it to work either. I did get the displayOptions->businessName to work properly, so set_payment_options seems to work. But I get nothing else.. Any ideas?
paymentOptions = {
"payKey" => pay_key,
"requestEnvelope" => {"errorLanguage" => "en_US"},
"displayOptions" => {
"businessName" => "Jumblzarrrrr, bitches"
},
"receiverOptions" => [
{
"receiver" => {
"email"=>seller_email
},
"description" => "Awesome product, yo!",
"invoiceData" => {
"item" => [
{"name" => "Super Product",
"identifier" => "IDENTIFIER",
"price" => @product.price,
"itemPrice" => @product.price,
"itemCount" => 1
}
]
}
}
]
}
pay_response2 = pay_request.set_payment_options(paymentOptions)
by watching on official PayPal AdaptivePayment API examples https://paypal-sdk-samples.herokuapp.com/adaptive_payments/set_payment_options , looks like it's not possible to set Payment Options without provided the Institution attribute. The InstitutionId attribute is something PayPal provide to only its partners, so PayPal account owner should be registered on PayPal as a partner.