paypal_adaptive icon indicating copy to clipboard operation
paypal_adaptive copied to clipboard

how can you specify item title?

Open sagivo opened this issue 12 years ago • 6 comments

where can you specify the item's title or description?

sagivo avatar Jan 16 '13 00:01 sagivo

Sorry but I don't understand your question.

tc avatar Jan 16 '13 04:01 tc

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?

sagivo avatar Jan 16 '13 08:01 sagivo

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.

tc avatar Jan 16 '13 20:01 tc

Screen Shot 2013-01-19 at 9 38 41 PM

tried to use the "memo" field. doesn't work. it doesn't change the title or add any description.

sagivo avatar Jan 19 '13 15:01 sagivo

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)

marcelfahle avatar Mar 13 '13 21:03 marcelfahle

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.

paxer avatar Apr 06 '13 06:04 paxer