[#1240] Clarification on Payment Processing via API

Migrated from Redmine #1240 | Author: Marc Bernet
Status: Feedback | Priority: High, I’m very impatient | Created: 2024-05-31


I need to clarify if it is possible to generate a payment link through the SimplyBook.me API that redirects users to complete their payment using the configured payment provider (e.g., Stripe).

Our client wants to implement this functionality directly through SimplyBook.me without handling payments on our side and then confirming them. We have encountered conflicting information and need a definitive answer.

Questions:

1.Is it possible to generate a payment link through the SimplyBook.me API that redirects users to complete their payment using the configured payment provider (like Stripe)?
2.If yes, what are the exact steps to achieve this?

We have reviewed support tickets #399, #521, #1207, and #1180 but need clear guidance.

Thank you for your assistance.

Best regards,

Dmytro Bondarev wrote:

Hi, you can generate link that directs to payment interface in SimplyBook.me, customer will have to choose payment provider and then customer will be redirected to payment provider.
API documentation | SimplyBook.me Online Scheduling

Marc Bernet wrote:

Dmytro Bondarev wrote:

Hi, you can generate link that directs to payment interface in SimplyBook.me, customer will have to choose payment provider and then customer will be redirected to payment provider.
API documentation | SimplyBook.me Online Scheduling

I’ve managed to generate a payment link, but now I have an issue. The subscription has 5 sessions included. We expect that after using those 5 sessions, the user has to pay for the session.

Now, if the user has “0 credits” left, we get this error:

“Membership limit error”

This is the payload:

{
    "jsonrpc": "2.0",
    "method": "book",
    "params": [
        "98",
        "65",
        "2024-07-04",
        "10:00:00",
        {
            "client_id": "1365",
            "client_sign": "abd2de9b0d2a3e95ed9725eb2877c845"
        },
        {
            "client_membership_id": "2685",
            "handle_invoice": true,
            "make_invoice": true,
            "payment_processor": "delay"
        },
        1
    ],
    "id": 1
}

If I don’t pass the client_membership_id in additionalData, I get the error: “Membership is required to book this service.”

Please advise on how I can configure the service to work as expected.

Thank you.

Dmytro Bondarev wrote:

Hi,
It is correct behavior. Only after membership renewal or after customer purchase new membership customer will be able to book again.
Membership renewals are recurring based.

Marc Bernet wrote:

Dmytro Bondarev wrote:

Hi,
It is correct behavior. Only after membership renewal or after customer purchase new membership customer will be able to book again.
Membership renewals are recurring based.

Do you have any function in your API to purchase or renew a membership? We need a way for users to buy a new membership with a set number of sessions included once they have used all their available sessions. sessions.