Open up "Payment Methods" and create a new Code for your new Payment Method of Stripe, Opayo or Barclaycard.
Within the Payment Provider Account column, click into the dropdown and select which Payment Provider Account you want your Code to be linked to.
Against a Payment Method, we can define the Scheduled Payment function which specifies if the payment method is used for scheduled payment collection. Note: these cannot be used with Barclaycard transactions because Barclaycard does not support Off-Session Payments.

From this Page, we can navigate to the Payment Gateway Setting Page for more setup.
In the General section you need to setup the Bal. Account Type which specifies the type of account that a balancing entry is posted to and Bal. Account No. to specify the number of the general ledger or bank account that the balancing entry is posted to. These will be populated on the Cash Receipt Journal when you want to post the payment against the invoice.
Setting the Show Payment Page field to 'True' will show the "Payment gateway Payment" page with the customer and payment details before you can enter the card details or generate the Payment Link. The user can review and alter payment value from the payment page. This is also the case when using Payment Links as it allows you the opportunity to change the value prior to sending out the link. Where this is 'False', you won't see this payment screen before the card details are required or the link is created. This is handled as a background payment therefore you must have a Default cardholder setup on the "Customer Card" to handle this as there is no option to select the cardholder without showing this screen.

Enabling the Show Amount Confirmation field will show a confirmation message about the payment amount before the payment is taken, such as the below example. Where this field is 'False', this confirmation message won't be shown.

If you wish to use Payment Links with Clever Payment Gateway, that is, for Business Central to create a link that can be emailed to a customer for them to populate their card details securely, you'll need to turn on the Email Payment Link option. This will ensure an email screen will open (after the Show Payment Page where this is enabled) for you to edit the body of the email and send the link. If you wish to default this Payment Provider to use Payment Gateway as the default Payment method, switch on the Set Payment Gateway as Default Payment Service.
The Confirm Payment on Sales Release specifies whether a confirmation dialog should be shown when a sales document is released with outstanding payment remaining on the Sales document. So where this is 'True' and I try and Release an open Sales Order which I havent yet processed any payments for within Payment Gateway, a confirmation box such as the below will be displayed.

Having this as 'false' on the "Payment Gateway Setting" page within "Payment Methods" will not display this field and will allow a User to Release the Sales Document with no notification about any remaining value. This won't stop a User from releasing the Sales Document.

The Enforce Payment on Sales Release specifies whether sales document should be prevented from being released when there is an outstanding payment remaining on Payment Gateway, so where this is 'True', and a Sales Document is released where a remaining value still exists, an error message such as the below will appear preventing the Release until the full amount has been paid.

Having this as 'False' will allow a Sales document to be released with an outstanding amount to be paid.
If you want to create a Payment Link when the Sales Order is released, ensure the Payment Link on Document Release is 'Yes'. This will create the link (and attempt to email if Email Payment Link is 'Yes'). Where this is 'No', no Payment Link will be created. Additionally, you can confirm whether you want a data matrix (a barcode) to appear on your Posted Sales Invoices. This is helpful where you post your invoice without taking the full payment but wish to include the barcode on the invoice so that it can be scanned and therefore paid by the customer. To show this on your Posted Sales Invoices, ensure the Payment Link on Invoice Post is 'Yes'.

When a User scans the barcode with their phone, the Payment Provider Payment page will appear asking them to enter their card details, ensuring no sensitive data is passed to other users or communicated over the phone. Note: iPhones older than version 15 are not yet compatible with this feature.
The Link that appears underneath the barcode can be selected (even when the document is a PDF) by the end User taking them to the same payment screen so the barcode does not have to be scanned.
The Post Payment Appln. On Invoice specifies whether Payment Gateway payments for the sales document should be automatically posted and applied on posting the sales invoice. This means, when the Sales Invoice is posted, Business Central will automatically create a journal entry for the Payment and post this, applying it to the relevant invoice, therefore leaving the Customer Ledger Entry with zero Remaining Amount. In order to do this, the Payment Jnl. Template Name and Payment Jnl. Batch Name should be set so Business Central knows which Journal and batch to use when creating and posting this entry.
On the Scheduled Payments section, the Scheduled Pmt. Jnl. Template Name and Scheduled Pmt. Jnl. Batch Name fields are used to specify the general journal template and batch used to create and post scheduled payments in so if using Scheduled payments, ensure these are populated.
Note: If Payment method includes a Discount calculation, Payment Gateway will not work as it is not compatible with this. The Discount calculation must be removed to use Payment Gateway successfully.