{"templateId":"markdown","versions":[{"version":"production","label":"November '26","link":"/docs/payments/inline-card-payments","default":true,"active":true,"folderId":"a2557b8d"}],"sharedDataIds":{"sidebar":"sidebar-docs/@production/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"redocly_category":"Accept & Collect","type":"markdown"},"seo":{"title":"Inline card payments","description":"FinDock introduces inline card payments, a new feature enabling card payment collection without external hosted payment pages.","siteUrl":"https://docs.findock.com"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"inline-card-payments","__idx":0},"children":["Inline card payments"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["FinDock inline card payments is in a closed pilot. If you would like to participate, please contact FinDock Support."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["FinDock inline card payments is a new feature enabled card payment collection without redirects to PSP hosted payment pages."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Inline card payments require some additional configuration. Existing redirect channels do not automatically change behavior when the inline card payments feature is enabled."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Prerequisites"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["FinDock installed and configured"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ProcessingHub connected"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["WebHub connected"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Stripe extension installed and configured"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Limitations"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Card payments through ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["Stripe only"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["3DS payer authentication (optional)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/payments/findock-payment-experiences"},"children":["FinDock Payment Experiences"]}," or a custom integration with ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/api/getting-started-with-the-payment-api-v2"},"children":["Payment API"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"stripe-configuration","__idx":1},"children":["Stripe configuration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The Stripe payment extension for Stipe needs to have the card payment method activated if it is not already. No other actions are required from the FinDock setup viewpoint. The FinDock integration with Stripe already handles the additional requirements for inline payments."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["FinDock also automatically handles 3D Secure (3DS) authentication by redirecting the payer to the challenge from Stripe. However, the authentication behavior is dependent on the fraud detection settings of your Stripe merchant account. Your FinDock setup does not control payer authentication."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"3ds-with-payment-experiences","__idx":2},"children":["3DS with Payment Experiences"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you are using 3DS with FinDock Payment Experiences components, you must add the Stripe webhook URL, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://hooks.stripe.com"]},", to the Content Security Policy (CSP) in Salesforce as one of your ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://help.salesforce.com/s/articleView?id=xcloud.security_trusted_urls_csp_violations.htm&type=5","target":"_blank"},"children":["Trusted URLs"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"payment-experiences","__idx":3},"children":["Payment Experiences"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When inline card payments is enabled for your org, you get news settings for each instance of the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/payments/building-payment-experiences#using-pay-button-in-flows"},"children":["Pay Button component"]},". The Stripe card payment method gets a new Payment Mode setting with inline-specific configuration options for payer authentication methods."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Once configured, the Pay Button component renders an inline form for entering card details instead of redirecting to an external hosted payment page."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"handling-success-and-failure-redirects","__idx":4},"children":["Handling success and failure redirects"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In every payment experience, you need to think about where the payer should land after a successful payment, and what do if the payment fails (on the last step, when clicking the Pay button)."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["With inline payments, you have a couple of option for handling what happens after the payer clicks the Pay Button. In the hosted payment page (HPP) scenario, the payer is already outside your payment experience and is redirected from the HPP back to what is typically a absolute URL based on the status of the payment action."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["With inline payments, you have can:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Set static custom pages for success and failures by entering an absolute URL in the Pay Button configuration. This approach is used, for example, by FinDock Flow templates."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Embed succuss and failure content within a single Flow Screen by setting the success URL to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["#success"]}," (without quotes) and the failure URL to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["#failure"]},". This prevents the payer from being redirected, and allows allow you to capture the event as input for another custom action. This works both in a pro-code LWC solution, as well as input to navigate to a next step in a Flow."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For the second option, the event to listen for is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["paymentPending"]},". The event is set to false when the Pay Button action is finished. The event is broadcast over:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Flow Attribute Change Event: capture as output of the Pay Button in Flow."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["LWC Custom Event: Any container LWC holding the Pay Button component is informed"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Lightning message channel: any loaded LWC (even outside the hierarchy) can register for this event and handle it according to your implementation"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"payment-api","__idx":5},"children":["Payment API"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Custom integrations with the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/api/getting-started-with-the-payment-api-v2"},"children":["Payment API"]}," need to generate the Stripe card token through 3rd party services before initiating the payment. FinDock handles token generation automatically when payments are initiated through Payment Experiences components."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"new-payment-method-parameters","__idx":6},"children":["New payment method parameters"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/api/payment-api-v2/payment-methods/getpaymentmethods"},"children":["GET /PaymentMethods"]}," endpoint returns additional, new parameters for the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CreditCard"]}," payment method with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PaymentHub-Stripe"]}," as processor. The new parameters are all optional and returned alongside parameters for redirects to the Stripe hosted payment page, such as locale, itemName and description."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"30%","data-label":"Parameter"},"children":["Parameter "]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":["Type"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Usage"},"children":["Usage"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["processorTokenId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Token Id required for Stripe inline card payments, for example ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pm_1Q2w3E4r5T6y"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["setupFutureUsage"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Indicates if token can be used (stored) for future payments or is single use only (and not stored); required if token Id is provided for one-time payments. |"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["processorCustomerId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Id that ties the token to the given payer at Stripe. For example: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cus_1Q2w3E4r5T6y"]},"."]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"using-inline-payment-parameters","__idx":7},"children":["Using inline payment parameters"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To initiate an inline card payment, add the token parameters to the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PaymentMethod.Parameters"]}," block of your post to the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/PaymentIntent"]}," endpoint. Please carefully note the interdependencies between parameters and how the impact the payment flow."]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Without ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["processorTokenId"]},", the payment intent works as before. The payer is redirected to the Stripe hosted payment page, and Parameters only carries optional ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/payment-processors/stripe#payment-method-parameters"},"children":["parameters"]}," for that page, like ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["description"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["With ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["processorTokenId"]},", the payer is charged with the token and is not redirected to the hosted payment page. Without ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["processorCustomerId"]},", the payer is treated as a new customer at Stripe."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["With ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["processorTokenId"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["processorCustomerId"]},", the token is charged on that Stripe customer. FinDock does not check that the token and customer belong together, but Stripe rejects the payment if they are not linked."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The following payment intent example is a one-time card payment with a token for an existing Stripe customer, where the token is not stored for future payments."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n    \"SuccessURL\": \"https://www.example.com/success\",\n    \"FailureURL\": \"https://www.example.com/error\",\n    \"Payer\": {\n        \"Contact\": {\n            \"SalesforceFields\": {\n                \"FirstName\": \"Test\",\n                \"LastName\": \"Payer\",\n                \"Email\": \"testpayer@example.com\"\n            }\n        }\n    },\n    \"OneTime\": {\n        \"Amount\": \"36\"\n    },\n    \"PaymentMethod\": {\n        \"Name\": \"CreditCard\",\n        \"Processor\": \"PaymentHub-Stripe\",\n        \"Parameters\": {\n            \"processorTokenId\": \"pm_1Q2w3E4r5T6y\",\n            \"setupFutureUsage\": false,\n            \"processorCustomerId\": \"cus_1Q2w3E4r5T6y\"\n        }\n    },\n    \"Settings\": {\n        \"SourceConnector\": \"PaymentHub\"\n    }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For a new recurring card payment with a token for an existing Stripe customer, setupFutureUsage is not required as it is already implied through the Recurring block in the payment intent, as shown here."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n    \"SuccessURL\": \"https://www.example.com/success\",\n    \"FailureURL\": \"https://www.example.com/error\",\n    \"Payer\": {\n        \"Contact\": {\n            \"SalesforceFields\": {\n                \"FirstName\": \"Test\",\n                \"LastName\": \"Payer\",\n                \"Email\": \"testpayer@example.com\"\n            }\n        }\n    },\n    \"Recurring\": {\n        \"Amount\": \"25\",\n        \"Frequency\": \"Monthly\",\n        \"StartDate\": \"2027-01-01\"\n    },\n    \"PaymentMethod\": {\n        \"Name\": \"CreditCard\",\n        \"Processor\": \"PaymentHub-Stripe\",\n        \"Parameters\": {\n            \"processorTokenId\": \"pm_1Q2w3E4r5T6y\",\n            \"processorCustomerId\": \"cus_1Q2w3E4r5T6y\"\n        }\n    },\n    \"Settings\": {\n        \"SourceConnector\": \"PaymentHub\"\n    }\n}\n","lang":"json"},"children":[]}]},"headings":[{"value":"Inline card payments","id":"inline-card-payments","depth":1},{"value":"Stripe configuration","id":"stripe-configuration","depth":2},{"value":"3DS with Payment Experiences","id":"3ds-with-payment-experiences","depth":3},{"value":"Payment Experiences","id":"payment-experiences","depth":2},{"value":"Handling success and failure redirects","id":"handling-success-and-failure-redirects","depth":3},{"value":"Payment API","id":"payment-api","depth":2},{"value":"New payment method parameters","id":"new-payment-method-parameters","depth":3},{"value":"Using inline payment parameters","id":"using-inline-payment-parameters","depth":3}],"frontmatter":{"seo":{"title":"Inline card payments","description":"FinDock introduces inline card payments, a new feature enabling card payment collection without external hosted payment pages."}},"lastModified":"2026-11-23T05:36:00.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/payments/inline-card-payments","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}