Returns an HTML-based dialog that allows user to make a single contribution that they can pay immediately, using a supported payment method.
- https://web.uselaterpay.com/dialog/contribute/pay_now (US Production)
- https://web.sandbox.uselaterpaytest.com/dialog/contribute/pay_now (US Sandbox)
Available via HTTPS.
A unique identifier for tracking your contribution goals (e.g., “2018-christmas-giving”, or “general-fund”). This will be used to show you analytics on how well each of your campaigns is doing. It can be any string consisting of lowercase or uppercase ASCII characters, digits, underscores, and hyphens, the length of which is between 1 and 128 characters.
A user-friendly title that explains what the user is contributing to. This will be displayed in the LaterPay dialogs and in the user’s invoice.
The URL where the user is sent after they successfully contribute. This might be your homepage, an article on your blog, or a specific landing page set up for your contribution campaign. Users will see this URL in their invoices. You can also specify a
cp, hmac (required)
Please choose ONE of the following parameters:
A string containing currency code and price matching your currency (i.e.,
EUR), plus the amount multiplied by 100. For example:
"USD220"translates to $2.20 USD,
"EUR340"translates to €3,40 EUR.
This parameter allows you (or your users) to change the contribution amount after the link has already been generated (e.g., manually changing the URL to have
custom_pricing=USD900, subject to LaterPay minimum and maximum limits).
NOTE: Do not include this parameter when signing the URL.
A string containing currency code and price, in the same format as
Use this parameter only if you want to make sure that the contribution amount can’t be changed after the URL is generated. You must include this parameter as part of signing the URL.
pricing parameters are mutually exclusive.
Please do not include both in the same URL.
A complete example URL for USD with
https://web.uselaterpay.com/dialog/contribute/pay_now? permalink=1& title=My+Test+Contribution& url=http%3A%2F%2Fyourdomain& campaign_id=my-contribution-campaign& cp=my-merchant-id& hmac=cc098ba1e428f4aa3e159892c5573b8a9d71db6849f306d7915a8937& custom_pricing=USD220
A complete example URL for EUR with
https://web.laterpay.net/dialog/contribute/pay_now? permalink=1& title=My+Test+Contribution& url=http%3A%2F%2Fyourdomain& campaign_id=my-contribution-campaign& cp=my-merchant-id& hmac=2d08a25dc46893ee5ab5c5055b2ef3f55a8475f00feeb8743a8fe15c& custom_pricing=EUR340
Time Validation Options¶
Please include ONE of the following parameters:
If this parameter is present and its value is a
1, the generated link will not expire.
We recommend this for most general user contributions, and especially for use in emails.
This is the timestamp of when the contribution link was generated. If present, the link will expire after a certain amount of time and your users will no longer be able to use the link.
Use this if you have a specific giving campaign where you want to ensure that users can’t reuse the links to make contributions again later.
ts parameters are mutually exclusive. If
1, do not include the
If you would like the user to be redirected to a different URL than what appears on their invoice, you can optionally provide