Passing a custom variable to the PayPal API - paypal

Gday All,
I am developing a site that uses PayPal to take online payments.
I need to be able to send my client an email with the link to PayPal in order to pay.
In this link I need a way to set a unique value (for example bookingId) that I can use to add the receipt number to the correct booking via PayPal's payment notification feature.
Does anyone know what custom value I can set in order to achieve this?
Cheers,
Michael

The "item_name" field will be displayed to the user and can be set to whatever you like. I use it for conference registration ID's, while using item_number to track what was actually purchased.

Use Invoice field.

You can use any of the following passthrough variables:
custom
item_number or item_number_x
invoice
See page 409 in the PayPal Website Payments Standard Integration Guide:
https://cms.paypal.com/cms_content/US/en_US/files/developer/PP_WebsitePaymentsStandard_IntegrationGuide.pdf
for details.

Related

Create a payment link given an email

Say I have a given email that is not mine (a customer) xx#gmail.com.
Say I would like to let another unknown customer pay money to this email. (= marketplace)
So in my website anyone who click a button is able to pay using Paypal to this given email. I have no relationship with any of them.
Is it possible with the API ? if so where is the reference to it ?
Is there any generic structure to create a link to request money based on a given email xx#gmail.com ?
In Adaptive Payment, Paypal says :
Adaptive Payments is now a limited release product
Which means ?
This can be done with the Express Checkout APIs, but based on what you're saying I would recommend you just use PayPal Standard.
This URL can be used as a template to build a payment request. Just replace the email in the business parameter with the email you want the payment to go to. Then anybody can use that URL to send a payment to that person.
https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&bn=AngellEYE_PHPClass&business=email#gmail.com&amount=25.00&currency_code=USD
So you can see this specifies the email address for where the payment should go, and it also includes the amount and currency code.
You can add any parameters you want from the PayPal Standard Variables Reference.

How use PayPal API Request Money?

I need to use Request Money by PayPal. I have problem with find the best Paypal API (SOAP/REST) for this. After that i need sometimes refund this transfer.
Can somebody help me to ?
I want to see if there is a way to automate the PayPal request money part.
This is a PHP web application.
A sample payment link :
https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=YOUR_PAYPAL_EMAIL&amount=10&currency_code=USD&item_name=test
Edit the value of each variable and you would be able to generate a payment link on your demand. You may also check below link for more details of PayPal Payment Standard 's variables.
https://developer.paypal.com/webapps/developer/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/
You can send PayPal Invoices to people using the Invoicing APIs. For that you may be interested in our PayPal class library for PayPal, which makes those API calls very quick and easy.
Alternatively, you could build a more simplified money request by just generating a PayPal Standard payment URL using the variables outlined here. Then you could have that URL be a link from any button or trigger you want.

Is any way we can have a click funnels order form that offers credit card and paypal AND integrates into Infusionsoft?

I am using clickfunnel order form and i want to offer credit card and paypal payment and user information need to go into the infusionsoft. How can i do this ?
Infusionsoft provides API that you can use to save information to this CRM.
In order to save PayPal payment information, you'll need to develop a script that accepts PayPal IPN notification about processed payment.
I'm not sure about the best way to do this, but here are a couple of ideas:
You could use Braintree to process the payment, since Braintree already accepts both paypal and credit card. And then you can set up an Email integration on the Clickfunnels order form to integrate with an Infusionsoft web form. This won't transfer the credit card information into Infusionsoft, but it will transfer Name and Email into Infusionsoft.
You could also add a Paypal button to the order form. This will take people to paypal to process the order. And then you might be able to use something like Zapier to move some of the customer's information and order information into Infusionsoft.

Paypal custom variable solution using php

I'm trying to using paypal as payment for my site.
My site only sell a virtual currency, like "Diamond" in Online game.
So after reading i starting to use Express Checkout for Digital Goods, Is that right ? or i must other payment method ?
Then my question is when using Express Checkout for Digital Goods, how to pass custom variable ?
Let say i want to pay user_id, diamond_id, and some other variable from my database to the paypal api. It seem like paypal don't support custom variable to pass on the api call. I want after user complete the payment, then Paypal notify my server that the payment is complete by user_id and some other variable that i pass, so easy for me to know the detail.
after searching i find some solution,
First solution is to store "TOKEN"(Generated from "SetExpressCheckout" Method) and my custom variable which is belong to the TOKEN in the database, Then after payment complete paypal will notify my server the same TOKEN saved before. So i will query based on the TOKEN.
Second Solution is using get style in RETURNURL variable http://www.mysite.com/successpayment.php?user_id=13&diamond_id=88 So i will easy to grab the GET variable.
Which solution is right ? Is there any solution ? and how to secure the payment confirmation, i mean if someone know and hack my returnurl.
Thanks in advance
There are two parts to be able to successfully identify your order in the whole process:
To identify your order when the user is redirected back via the success or cancel URL, just pass the order id via the query string of the URL.
To identify your order when Paypal sends notifications about the transaction and associated events (refunds, reversals, disputes etc.) via IPN: Paypal does support a pass-through variable, which allows you to associate IPNs to the order record in your DB.
For express checkout you set PAYMENTREQUEST_0_INVNUM in the SetExpressCheckout call
In case you are creating a recurring profile, the parameter is named PROFILEREFERENCE in the CreateRecurringPaymentsProfile call
When you receive an IPN the invoice is passed as 'invoice' or 'rp_invoice_id' respectively
(My general advice, though: use Paypal only if you really have to)

Paypal request money - does it have API?

There is a request money by email feature on paypal - (where you can put email of some person and he can send you money)
Does it have an API ? (So I want to request money by email from my application)
So the answer is - no such API
It looks like you can send invoices (request money) by email with the Invoicing Service API
You can create your own personal PayPal.Me/name link (it's open to both personal and business use) and it will be associated with your PayPal account.
Whenever you need to collect money from anyone, just send them your PayPal.Me link via email (or chat, SMS...).
Your payer clicks the link, enters the amount, and that's it. The money is in your PayPal account in seconds (you'll pay the standard PayPal fee for a business account).
To request a specific amount just add it to the end of your link. For example, use
PayPal.Me/name/25
to request 25 USD. You can request a specific currency by adding the currency code to the amount, e.g.
PayPal.Me/name/25EUR
IT has that facility. you have to generate url. its mentioned at
https://www.x.com/developers/community/blogs/ppmtschad/creating-hyperlink-instead-paypal-button
First method is to use the Invoice API to generate the request and have paypal send out the email.
See https://www.paypal.com/cgi-bin/webscr?cmd=xpt/Merchant/bizui/IntegrationDirect-outside
Second method is to use the buy now buttons. First create the product in the paypal account, then create a buy now button for it. It'll give an option for Email. You can then send that link out whenever you want.
See https://www.x.com/developers/community/blogs/ppmtschad/creating-hyperlink-instead-paypal-button and
Third option is the rarely advertised custom cart URL. I don't have anything that details this however the following sample link can get you started.
https://secure.paypal.com/xclick/business=EMAIL%40DOMAIN.COM&item_name=Cart_Invoice_Custom_Name&amount=123.45&return=www.yourwebsite.com&currency_code=EUR
Remember to properly URL encode things. All the variables for dynamic buttons that I've tried work fine. Details of those are at https://www.paypal.com/cgi-bin/webscr?cmd=_pdn_xclick_techview_outside