Appending Data To Success URL
Support avatar
Written by Support
Updated over a week ago

October 29, 2010
Updated: March 1, 2020

sticky.io Platform currently supports appending your customer’s data to your order confirmation/success URL.

Appending order id, order total amount, email address, shipping information, billing information, and product information purchased. 

Success/Order Confirmation URL Example:

https://www.xyz.com/thankyou.php?order_id=25745&amount=6.95&e_mail=test@xyz.com&customer_id=6976&Bill_First=test&Bill_Last=test&Bill_Address1=test&Bill_City=test&Bill_State=FL&Bill_Country=United%20States&Bill_Phone=813-939-3902&Bill_Email=test@xyz.com&Ship_First=test&Ship_Last=test&Ship_Address1=test&Ship_City=test&Ship_State=FL&Ship_Zip=34689&Ship_Country=United%20States&Ship_Phone=813-939-3902&Tax_amount=0.20&Total_product_Taxable_Amount=2.00&product1id=5&product1Name=test&product1Price=4.00&Product1Quantity=4&product1BasePrice=1.00&Gateway_id=123&Gateway_Descriptor=xxxxxx&Gateway_Customer_Service=1800-111-111-1111

 Available Data Fields:

order_id=25745

amount=6.95

Customer_Id=6976

Bill_First=test

Bill_Last=test

Bill_Address1=test

Bill_Address2=test

Bill_City=test

Bill_State=FL

Bill_Zip=33626

Bill_Country=United%20States

Bill_Phone=813-939-3902

Bill_Email=test@xyz.com

Ship_First=test

Ship_Last=test

Ship_Address1=test

Ship_Address2-=test

Ship_City=test

Ship_State=FL

Ship_Zip=33626

Ship_Country=United%20States

Ship_Phone=813-933-3900

Tax_Amount=0.20

Total_Product_Taxable_Amount=2.00

Total_Product_Non_Taxable_Amount=0.00

Sales_Tax_Percent=10.00

ShippingId=1

ShippingPrice=1.00

ShippingMethod=test

SubTotal=1.00

ipAddress=127.0.0.1

product1Id=5

product1Name=test

product1Price=4.00

product1Quantity=4

product1BasePrice=1.00

product1DigitalURL=http://www.test.com

product1DigitalUsername=joeTest

product1DigitalPassword=abc123

Gateway_Id=123

Gateway_Descriptor=xxxxxxx

Gateway_Customer_Service=1800-XXX-XXXX

Order_Documents=

%7B%22Boleto%22:%22https%3A%2 %2Fyourstickydomain%2Forder_documentation.php%3ForderId%3D13643%26type%3D1%26access_token%3D7f6a521d287a8a04cf81449be05afde1%22%7D (a JSON encoded array)

giro_account_name

giro_bank_name

giro_bank_address

giro_sort_code

giro_account_number

giro_iban

giro_swift

Campaign_Id

Subscription_Id (if applicable)

Note: If you have additional products purchased with your order we will append the product id, name and price for each of these products to your URL. For digitally delivered goods, the Digital URL and any applicable Digital Usernames and Digital Passwords will be appended similarly.

 Pre-populating Fields Into Your Order Confirmation Page

You can easily pre-populate the data fields that we append to your success/order confirmation URL. If you are using a PHP dynamic page you can use a standard GET posting script to pop the data fields into your PHP page.

Example of pre-populating the order id field:

<? if(isset($_GET["order_id"])) { echo $_GET["order_id"]; } ?>

Repeat this example for each data field provided above and change the field name within the GET posting script based on the data field name highlighted. You will need to make sure your order confirmation page is saved as a PHP file format.

Did this answer your question?