Direct Checkout Link
Creating a direct checkout link
https://payhip.com/b/ean3D
https://payhip.com/buy?link=ean3D
How to find your unique product key
Visit your edit product page and view the address bar. This will show you the product key, as seen in the screenshot below.

Creating a direct checkout link with custom product URLs
If you have a custom domain attached to your Payhip store, you'll need to use the original product key when creating a direct checkout link.
Here is an example of a customized product URL:
https://sampledomain.com/b/my-custom-name
To create a direct checkout link, the product key should be used
https://sampledomain.com/buy?link=ean3D
Direct checkout link with multiple items
If you would like to create a checkout link where multiple items are included, then this is possible too.
Let's take the example where you have the following products
https://payhip.com.com/b/ean3D
https://payhip.com/b/BaFxk
Then the combined checkout page link would be:
https://payhip.com/buy?cart_links[]=ean3D&cart_links[]=BaFxk
This URL will take buyers directly to the checkout link where they can purchase multiple items at once.
Advanced developer options
In some cases you may want to set some metadata on the checkout page link, which is then passed through to your webhooks payload.
This is useful for example if you want to associate your own ID with this specific customer, which you can read off webhooks.
To set checkout URL metadata you can using the following approach:
https://payhip.com/buy?link=ean3D&metadata[mykey1]=myvalue1&metadata[mykey2]=myvalue2
- You can add 20 metadata key-value pairs
- Metadata keys have a 40 character limit and the following characters can't be included [ ] < >
- Metadata values have a 500 character limit and the following characters can't be included < >