Salesforce order payment link
On this page
A Payment Link exists for all StoreConnect orders and can be sent to a customer for them to easily pay the remaining balance of their order.
This feature is useful for:
- Orders that have been modified so have an outstanding balance.
- Orders that were manually created.
- Online order completed with the Pay Later payment method and you want to prompt them to pay by credit card.
Prerequisites
For the payment link to work, the order must meet both of these requirements:
The order must be linked to a StoreConnect store
The order’s Store field (s_c__Store_Id__c) must be populated with a StoreConnect store. This is what makes an order “StoreConnect compatible.” Orders created directly in Salesforce without a store association will not have a working payment link.
Orders created through the StoreConnect storefront or POS are automatically linked to a store. If you are creating an order manually in Salesforce, you must set the Store field yourself.
A credit card payment method must be available on the store
A credit card payment provider must be configured and enabled on the same store the order is linked to. The customer uses this to pay when they open the link.
Limitations
Subscription renewal orders
The order payment link does not work for subscription renewal orders. If a customer attempts to open the payment link for a renewal order, they will be redirected away with an error.
Instead, direct the customer to pay via their subscription on the website:
{store_url}/account/subscriptions/{subscription_id}/payment/new
Where {subscription_id} is the Salesforce ID of the Subscription__c record. The customer must be logged in to their store account to access this page.
To include this link in a Salesforce email template, use:
html
<a href="{!relatedTo.s_c__Store_Id__r.s_c__Link__c}/account/subscriptions/{!relatedTo.Id}/payment/new">Pay subscription</a>
Viewing this field from the order page layout
Adding the Payment Link field to your Order page layout, makes the link accessible to your team. They can then pass it onto customers they are communicating with.
Field Name: Payment Link (s_c__Payment_Link__c)
Payment link on email templates
Add this code to a classic email template of your choice and then have the link emailed out automatically via a Flow or StoreConnect Transactional Email using that template.
```html
When ready to pay, you can use this URL directly: Pay Here
```
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.