Skip to content
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

how can you specify item title? #70

Open
sagivo opened this issue Jan 16, 2013 · 6 comments
Open

how can you specify item title? #70

sagivo opened this issue Jan 16, 2013 · 6 comments

Comments

@sagivo
Copy link

sagivo commented Jan 16, 2013

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

@tc
Copy link
Owner

tc commented Jan 16, 2013

Sorry but I don't understand your question.

@sagivo
Copy link
Author

sagivo commented Jan 16, 2013

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?

@tc
Copy link
Owner

tc commented Jan 16, 2013

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.

@sagivo
Copy link
Author

sagivo commented Jan 19, 2013

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.

@marcelfahle
Copy link

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)

@paxer
Copy link

paxer commented Apr 6, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants