Nicolas Abrovich wrote:
I have a custom front end en custom server
When i use public method “book”
i get this result:
const booking = {
require_confirm: false,
bookings: [
{
id: '567',
event_id: 41,
unit_id: 26,
client_id: '253',
client_hash: '----------',
start_date_time: '2025-01-02 11:40:00',
end_date_time: '2025-01-02 12:25:00',
time_offset: '0',
is_confirmed: '1',
require_payment: false,
code: '5ptfq7ih',
hash: '-----------',
},
],
invoice: {
client_additional_info: [],
id: 599,
number: 'O-00000598',
datetime: '2024-04-15 10:07:17',
due_datetime: '2024-04-15 10:37:17',
payment_datetime: null,
amount: 10,
recurring_amount: 0,
deposit: 0,
is_with_deposit_amount: true,
deposit_is_client_can_pay_later: 1,
rest_amount: 35,
discount_amount: 0,
taxes: [{}],
tax_amount: 1.6667,
currency: 'EUR',
tip: null,
client_id: 253,
description: '',
payment_received: false,
payment_processor: null,
lines: [
{
currency: 'EUR',
amount: 10,
name_for_booking_line: 'Réservation',
},
],
status: 'new',
support_recurring_payment_method: false,
require_recurring_payment_method: false,
recurring_profile_id: null,
promotion_instances: [],
package_instances: [],
deposit_child_invoice: null,
deposit_parent_invoice: null,
refund_datetime: null,
sbpay_reference_id: null,
sbpay_invoice_id: '',
},
};
I want to use sbpay to get a stripe url and redirect customer
but how do you do it?
i see “Initialize payment” on SBPay.me - Single place for all payment processors
but how to link sbpay with simplybook ?