You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: update README with new model and parameter names
- Replace deprecated model class names with new versions
- Update parameter names to match latest API specification
- Modify code examples to reflect current SDK usage
- Adjust URL and callback parameter names for consistency
$request = new \OpenAPI\Client\Model\CreatePaymentRequest([
254
+
$request = new OpenAPI\Client\Model\CreatePaymentRequest([
255
255
'amount' => 110, // Amount in cents (1.10)
256
256
'currency' => 'EUR',
257
-
'orderId' => '14379133960355',
257
+
'order_id' => '14379133960355',
258
258
'description' => 'Test Shop - #14379133960355',
259
-
'customer' => new \OpenAPI\Client\Model\Customer([
259
+
'customer' => new OpenAPI\Client\Model\PaymentCustomer([
260
260
'email' => 'customer@example.com'
261
261
]),
262
-
'callbackUrl' => 'https://example.com/checkout/callback', // For asynchronous notifications
263
-
'successUrl' => 'https://example.com/checkout/complete', // Redirect after payment
264
-
'failureUrl' => 'https://example.com/checkout/cancel' // Redirect if customer cancels
262
+
'callback_url' => 'https://example.com/checkout/callback', // For asynchronous notifications
263
+
'complete_url' => 'https://example.com/checkout/complete', // Redirect after payment
264
+
'fail_url' => 'https://example.com/checkout/cancel' // Redirect if customer cancels
265
265
]);
266
266
267
267
$result = $monei->payments->create($request);
@@ -287,12 +287,12 @@ The customer enters their payment information and completes any required verific
287
287
288
288
4.**Customer is redirected back to your website**
289
289
290
-
- If the customer completes the payment, they are redirected to the `successUrl` with a `payment_id` query parameter
291
-
- If the customer cancels, they are redirected to the `failureUrl`
290
+
- If the customer completes the payment, they are redirected to the `complete_url` with a `payment_id` query parameter
291
+
- If the customer cancels, they are redirected to the `fail_url`
292
292
293
293
5.**Receive asynchronous notification**
294
294
295
-
MONEI sends an HTTP POST request to your `callbackUrl` with the payment result. This ensures you receive the payment status even if the customer closes their browser during the redirect.
295
+
MONEI sends an HTTP POST request to your `callback_url` with the payment result. This ensures you receive the payment status even if the customer closes their browser during the redirect.
296
296
297
297
For more information about the hosted payment page, visit the [MONEI Hosted Payment Page documentation](https://docs.monei.com/docs/integrations/use-prebuilt-payment-page).
MONEI sends an HTTP POST request to your `callbackUrl` with the payment result. This ensures you receive the payment status even if the customer closes their browser during the redirect.
362
+
MONEI sends an HTTP POST request to your `callback_url` with the payment result. This ensures you receive the payment status even if the customer closes their browser during the redirect.
0 commit comments