{"title":"Salesforce order payment link","slug":"salesforce-order-payment-link","url":"https://support.storeconnect.com/articles/salesforce-order-payment-link","url_markdown":"https://support.storeconnect.com/articles/salesforce-order-payment-link.md","subtitle":null,"summary":"StoreConnect has two payment links a customer can use to pay: the order payment link for an outstanding order balance, including subscription renewal orders, and the subscription payment link for an amount owing on a subscription, with which link applies and when the customer must log in.","type":"Help_Documentation","video_url":"","keywords":"payment link, salesforce order payment, outstanding balance, pay later, order payment url, credit card payment, email template, page layout, manual order, order balance, send payment link, subscription payment link, renewal order, pay subscription, guest payment, logged in, guest renewal payment","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"StoreConnect has **two different payment links** you can send a customer, depending on what they are paying:\n\n-   The **order payment link** — starts from an **order**. It pays that order's outstanding balance. If the order is a subscription renewal order, paying it also advances the subscription (see below).\n-   The **subscription payment link** — starts from the **subscription** itself. It pays whatever the subscription currently owes.\n\nThe starting point is different, but the outcome for a subscription is the same: paying a subscription's amount owing through either link advances the subscription to its next renewal. The other differences are when the customer must be logged in, and whether a guest can use the link. Use the guide below to pick the right one.\n\n## Order payment link versus subscription payment link\n\n| | Order payment link | Subscription payment link |\n|---|---|---|\n| Pays | One order's outstanding balance (including a subscription renewal order) | An amount owing on a subscription |\n| Advances the subscription to its next renewal date? | Yes — when the order is a subscription renewal order | Yes |\n| Regular order — customer needs to log in? | No — works for a logged-in customer or a guest | Not applicable |\n| Renewal order — customer needs to log in? | Logged-in customers always can; guests only if guest renewal payment is enabled | Yes — always |\n| Available while the subscription is suspended or cancelled? | Yes, if a renewal order already exists (but paying it does not reactivate the subscription) | No |\n\n## Order payment link\n\nA payment link exists for every StoreConnect order and can be sent to a customer so they can pay the remaining balance of that order.\n\nThis is useful for:\n\n-   Orders that have been modified and now have an outstanding balance.\n-   Orders that were created manually in Salesforce.\n-   Online orders completed with the Pay Later payment method, where you want to prompt the customer to pay by credit card.\n-   Subscription renewal orders (see below).\n\n### Prerequisites\n\nFor the order payment link to work, the order must meet both of these requirements.\n\n**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 through the storefront or POS are linked automatically. If you create an order manually in Salesforce, set the **Store** field yourself.\n\n**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.\n\n### Regular orders — logged in or as a guest\n\nFor a normal order balance, the order payment link works whether or not the customer is logged in. You can send it to anyone and they can pay as a guest.\n\n### Subscription renewal orders\n\nThe order payment link also works for subscription renewal orders. Whether the customer needs to log in depends on how they open the link:\n\n-   **Logged-in customers can always pay** a renewal order through the order payment link. No extra configuration is needed.\n-   **Guests (not logged in) are blocked by default.** To let a guest pay a renewal order without logging in, enable guest renewal payments on the store (steps below). Otherwise they are redirected away with an error.\n\nRenewal orders are always paid in full — a partial or custom amount cannot be entered for a renewal order.\n\n**Paying a renewal order this way updates the subscription automatically.** StoreConnect advances the subscription to its next renewal and billing date, clears any overdue status, and marks the renewal order as paid. The subscription is then ready for its next renewal, exactly as if the automatic renewal charge had succeeded. The one thing it does **not** change is the saved card — the card entered on the payment link is used for that single payment only and does not replace the card used for automatic future renewals.\n\n:::warning\nThis automatic subscription update happens when the customer pays through the payment link. It does **not** happen if you pay the renewal order using the Salesforce **Take Payment** action, which settles the order but leaves the subscription untouched. See [Subscription renewal orders](subscription-renewal-orders) for how to handle that case.\n:::\n\n#### Allow customers to pay renewal orders without logging in\n\nBy default, only logged-in customers can pay a renewal order through the link. To let a customer pay without logging in, add a [Store Variable](store-variables) to the store:\n\n1.  Open the **Store** record in Salesforce.\n2.  Go to the **Store Variables** related list and click **New**.\n3.  Set the **Key** to `subscriptions.guest_renewal_payment_enabled`.\n4.  Set the **Value** to `true`.\n5.  Save the record.\n\nLogged-in customers can always pay renewal orders regardless of this setting.\n\n### Add the link to the order page layout\n\nAdd the **Payment Link** field (`s_c__Payment_Link__c`) to your Order page layout so your team can copy it and pass it to customers they are communicating with.\n\n### Add the link to an email template\n\nAdd this code to a classic email template, then send it automatically via a Flow or StoreConnect Transactional Email using that template:\n\n```html\n\n\u003cp\u003e\nWhen ready to pay, you can use this URL directly:\n\u003ca href=\"{!relatedTo.s_c__Store_Id__r.s_c__Link__c}/order/payment/{!relatedTo.OrderReferenceNumber}\"\u003ePay Here\u003c/a\u003e\n\u003c/p\u003e\n```\n\n## Subscription payment link\n\nWhen a customer wants to pay an amount owing on a subscription from inside their account — for example a renewal that is due — direct them to their subscription on the website:\n\n```\n{store_url}/account/subscriptions/{subscription_id}/payment/new\n```\n\nWhere `{subscription_id}` is the Salesforce ID of the `Subscription__c` record and `{store_url}` is your store's URL.\n\nThe customer **must be logged in** to their store account to use this page. There is no guest version of the subscription payment link — if you need an unauthenticated option for a renewal, use the order payment link with guest renewal payment enabled (above).\n\nTo include this link in a Salesforce email template, use:\n\n```html\n\n\u003ca href=\"{!relatedTo.s_c__Store_Id__r.s_c__Link__c}/account/subscriptions/{!relatedTo.Id}/payment/new\"\u003ePay subscription\u003c/a\u003e\n```\n\n### Payment of suspended or cancelled subscriptions\n\nThe subscription payment link is not available while a subscription is **suspended** or **cancelled** — the pay option is hidden in these states. If an outstanding renewal order exists, the customer can still pay it through the order payment link above, but paying it does not by itself reactivate a suspended subscription. To resume normal billing, the subscription must be returned to an active state. See [Subscription renewal orders](subscription-renewal-orders) for how renewals and subscription status work."}