How to let customers pay SAP S/4HANA invoices online
Connect SAP S/4HANA and your Stripe account to Portal. Customers pay open S/4HANA billing documents, with balances and due dates from the customer's open items by card or bank payment, and each payment is written back as an S/4HANA journal entry that debits your bank G/L account and credits the customer, leaving your team to clear the open item in SAP (on S/4HANA only; ECC payments are not posted from the portal).
About SAP S/4HANA.
SAP S/4HANA is SAP's ERP suite, built on the SAP HANA database and the successor to SAP ERP, better known as ECC. It runs as SAP S/4HANA Cloud public edition, as a private cloud edition, or on your own servers, and SAP has committed to maintaining S/4HANA until the end of 2040.
Many companies still run SAP ERP 6.0, the ECC core of SAP Business Suite 7. SAP's mainstream maintenance for it runs until the end of 2027, with optional extended maintenance to the end of 2030, so most ECC customers are planning a move to S/4HANA while their business keeps running on ECC.
Sales in both systems are organized by sales area: a sales organization, a distribution channel and a division. Quotations, sales orders, deliveries and billing documents are separate documents that follow one another, which is what any portal on SAP has to respect.
Portal by Webisoft is a B2B portal for SAP S/4HANA: customer self-service and team apps on live SAP S/4HANA data.
Why connecting to SAP S/4HANA is hard.
A payment collected online has to reach SAP against the customer's open items. On S/4HANA Cloud, Portal posts it as a journal entry and your team clears the open item in SAP as usual.
ECC has a support end date
Mainstream maintenance for SAP Business Suite 7, which includes SAP ERP 6.0, ends with 2027 and optional extended maintenance with 2030, while S/4HANA is maintained until the end of 2040. Anything you build on ECC today has to survive the move to S/4HANA, where the data model and the APIs are different.
Every API sits behind a communication arrangement
In S/4HANA Cloud public edition, an outside system calls an API only after an administrator creates a communication user, a communication system and a communication arrangement for the API's communication scenario, such as SAP_COM_0008 for business partners. A portal that reads customers, products, prices, stock, orders, deliveries and billing needs one arrangement per scenario.
ECC speaks RFC through SAP's own connector
ECC and on-premise systems without an exposed OData gateway are reached over RFC, which from Windows means the SAP Connector for Microsoft .NET. NCo 3.0 is out of support, NCo 3.1 runs on .NET Framework and on .NET 8 only from patch level 3.1.5, and the download comes from SAP, so the integration machine has to be set up with the right build.
Your options.
| Option | Fits when | Watch out for |
|---|---|---|
| Native SAP S/4HANA add-ons | You need one narrow function and an add-on covers it. | Each add-on is its own product to license, learn and upgrade. |
| Generic integration platform | You have someone in-house to build and maintain the flows. | You still build the screens, the AI layer and the SAP S/4HANA write rules yourself. |
| Custom code | The need is unique and you have developers who know SAP S/4HANA. | Upgrades and staff changes put the integration at risk. |
| Portal by Webisoft | You want customers, your team and AI agents working on live SAP S/4HANA data. | It works on top of SAP S/4HANA; it does not replace it. |
How Portal reaches SAP S/4HANA.
For S/4HANA Cloud, public or private edition, Portal uses SAP's released OData APIs for business partners, products, pricing conditions, stock, sales quotations, sales orders, deliveries, billing documents and open items. Your administrator sets up the communication arrangements, gives Portal the API host and a communication user or OAuth client, and picks the sales area and plant to work in. On-premise S/4HANA with its OData gateway works the same way, called directly or through the On-site connector relay inside your network so nothing is opened to the internet.
For ECC 6.0, and S/4HANA on-premise if you prefer RFC, the On-site connector runs on a Windows machine in your network with SAP's .NET Connector 3.1.5 or later, which you download from SAP. It reads tables over RFC and writes through SAP's BAPIs, so SAP's own checks apply. Either way, every quote and order carries a portal reference that Portal looks up before creating, so a retry never enters a document twice, and an accepted quotation becomes a sales order that references it.
What you need.
- An S/4HANA administrator who can create a communication user, system and arrangements, or register an OAuth client
- The sales organization, distribution channel, division and plant Portal works in, plus the bank G/L account receipts post to
- A Stripe account to receive payments
Step by step.
Your Portal team sets up the SAP S/4HANA connection with you during onboarding, so the first step is done together. The rest is yours to change any time.
Set up communication arrangements and connect
In S/4HANA, an administrator creates a communication user, a communication system and one communication arrangement per API scenario Portal calls, such as SAP_COM_0008 for business partners and SAP_COM_0109 for sales orders. Under Setup, ERP, ERP system in Portal, choose SAP S/4HANA, enter the API host (for example https://my000000-api.s4hana.cloud.sap), pick Basic with the communication user or OAuth with Connect with SAP, add the SAP client for private cloud or on-premise, and set the sales organization, distribution channel, division and plant. Test connection checks that the sales area has customers.
Connect Stripe and choose methods
In Integrations, Payments, choose Connect Stripe, then pick cards, ACH for USD invoices and PAD for CAD invoices, and any card surcharge up to 3 percent.
Customers pay their invoices
Customer admins and accounts payable users see their open S/4HANA billing documents, with balances and due dates from the customer's open items and choose Pay selected, or Pay this invoice, and can pay part of an invoice.
The payment posts to SAP S/4HANA
Each successful payment is queued as an S/4HANA journal entry that debits your bank G/L account and credits the customer, leaving your team to clear the open item in SAP (on S/4HANA only; ECC payments are not posted from the portal). The payment shows Posted in the ERP with the SAP S/4HANA reference; if posting needs a person, an approval appears instead.
What syncs with SAP S/4HANA.
| Record | Read | Write back | Note |
|---|---|---|---|
| Customers, contacts and ship-to partners | Yes | Yes | Credit limit and block when credit management is read; on S/4HANA over RFC customers are not created |
| Products (materials) | Yes | Yes | Those with sales data in your sales area |
| List and customer prices | Yes | No | From pricing condition records valid today; scales are not read |
| Stock by plant and storage location | Yes | Yes | Unrestricted stock is available; adjustments and transfers post goods movements |
| Sales quotations | Yes | Yes | An accepted quotation becomes a sales order that references it |
| Sales orders | Yes | Yes | SAP's credit block shows as on hold |
| Outbound deliveries | Yes | Yes | Shipped once goods issue is posted; bill of lading as tracking |
| Billing documents | Yes | Yes | Invoices, credit and debit memos; billed from the order's deliveries |
| Payments | Yes | Yes | Read from cleared items. Cloud API: posted as a journal entry, the open item is then cleared in SAP. ECC: not posted |
| Customer returns | Yes | Yes | |
| Purchase orders and goods receipts | Yes | Yes | Create, change dates and quantities, receive goods |
Limits today: On S/4HANA Cloud a payment is posted as a journal entry and your team clears the open item; on ECC payments are not posted from the portal.
What you can do next.
- A customer pays three open SAP S/4HANA invoices in one card payment; each invoice gets its share in SAP S/4HANA.
- An AP clerk pays half of an invoice by ACH; the open balance in SAP S/4HANA drops by that amount once the payment posts.
SAP S/4HANA questions, answered.
Is the payment recorded in SAP S/4HANA automatically?
Yes, as an S/4HANA journal entry that debits your bank G/L account and credits the customer, leaving your team to clear the open item in SAP (on S/4HANA only; ECC payments are not posted from the portal). If it cannot be posted, an approval asks your team to record it.
Is a card surcharge posted too?
Payments are applied to the invoices; a surcharge is not applied to an invoice.
What about refunds and disputes?
Portal opens an approval to reverse the payment in SAP S/4HANA, so your books follow what happened in Stripe.
Keep going.
- Take invoice payments online: overview
- B2B portal for SAP S/4HANA
- Connect an AI agent to your ERP, SAP S/4HANA
- Automate order entry from email, SAP S/4HANA
- Give customers order status, SAP S/4HANA
- Build a B2B ordering portal, SAP S/4HANA
- Quotes customers accept online, SAP S/4HANA
- Triage a shared inbox, SAP S/4HANA
- Add approval workflows, SAP S/4HANA
- One REST API for your ERP, SAP S/4HANA
- Connect an on-prem ERP safely, SAP S/4HANA
- Take invoice payments online, SAP Business One