Search for answers:
The OptimizePress Support Site Has Moved: Click here to access the new Support site

How to create a URL order link (for Paypal)

If you want to create an order link which you can use to sell products that you have setup within OptimizeMember through a link on your website in a pricing table or somewhere you cannot use our shortcode, please follow this guide.
 
Before You Start, Please Read These Important Notes
 
1. Currently this process cannot be used to generate orders for Clickbank due to changes with their system, so this only works for PayPal currently
 
2. Due to a recent change in WordPress core framework after 4.3, the old method recommended to create these links no longer works, please follow the new process below. 
 
How to create URL order link (for Paypal)
 
Step 1. 
 
Create your order button shortcode by going to OptimizeMember > Paypal Buttons and then setup your order button for the levels, packages and pricing you want.
 
Once you have generated the order button shortcode, copy this or save it to a notepad or text document
 
Step 2.
 
Create a new page inside WordPress by going to Pages > Add New.  
 
Switch the editor to the "Text" or "HTML" view
 
Step 3. 
 
Insert the shortcode you copied earlier from the clipboard or from your text document
 
It will look something like this (yours will vary depending on your packages chosen and will show your domain information so do not copy this code):
 
[optimizeMember-PayPal-Button level="1" ccaps="" desc="Bronze Member / description and pricing details here." ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="optimizepressplus.com" ta="0" tp="0" tt="D" ra="0.01" rp="1" rt="M" rr="1" rrt="" rra="1" image="default" output="button" /]
 
Step 4:

Inside the button code, change the code that says:
 
output="button"
 
to 
 
output="url"
 
Step 5:
 
Save and publish the page with the code and click the "View Page" option once the page has been published
 
In your browser address bar, copy the URL of the page and save it to your clipboard or a text document.
 
Step 6:
 
Logout of your site! You must logout of your site OR switch to a different browser where you are not logged into your site
 
This step is VERY IMPORTANT otherwise the final code will not work
 
Step 7:

Once logged out of your site, or in a different browser, paste the URL of your page that you saved earlier into the address bar and access the page.
 
You should see a page with a lot of code starting with https://www.paypal.com/cgi-bin/webscr?...
 
It will look something like this
 
 
Step 8: 
 
This URL is your order link. It is important accessing the source code view of the page and copying from there to avoid any mistakes.
 
In Google Chrome, go to View > Developer > View Source
 
In Safari (you may need to enable developer tools), go to Develop > Show Page Source
 
In Firefox, go to Tools > Web Developer > Page Source
 
To find the code on the page, you may need to use CNTRL+F or CMD+F and search for :  
https://www.paypal.com/cgi-bin
 

Copy the whole long line of code and save this to a document where you can access it later.  This is your order link URL

 


IMPORTANT
 
Ensure that after you have inserted your order link, before you copy it, you LOG OUT of your website, and view the page when logged out before you copy the actual order link otherwise it may generate errors after the first customer uses it.
 
Also, if you see fields such as these then you will need to remove them - basically any ip address and invoice references would need to be removed, otherwise that might also cause some issues.
 
&s2_invoice=1%3A%3A1+M&s2_p1&s2_p3 
&s2_customer_ip=12.12.121.21
 
 
Didn't find an answer to your question? Contact Our Support Team (Submit a ticket)
Was this article helpful?
1 out of 6 found this helpful
Follow

Comments

Other Help Categories:

Get Started Guide

Watch our Ultimate Getting Started guide video

Pre-Sales Questions

Ask questions before purchasing our products

Login Problems

If you're having issues logging into our members hub

Accounts & Billing

Update your billing, request a refund and other accounts help

API Key Issues

Get help with licensing your site and API key issues

Membership Help

Get help creating Membership portals and courses

LiveEditor Help

If you need help using or troubleshooting the LiveEditor

Integrations

Find out about the many integrations possible with OptimizePress

Affiliate Questions

Have questions about promoting OptimizePress

Clubhouse Questions

Questions about our Clubhouse Membership Subscription