Created
January 17, 2026 13:31
-
-
Save sabrysuleiman/ebd9cae5113ec77bcee168a965c210a6 to your computer and use it in GitHub Desktop.
fawaterk request body
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Prepare payload | |
| $data = [ | |
| "payment_method_id" => 2, | |
| "cartTotal" => $amount, | |
| "currency" => "EGP", | |
| "customer" => [ | |
| "first_name" => $firstName, | |
| "last_name" => $lastName, | |
| "email" => $email, | |
| "phone" => $phone, | |
| "address" => "Cairo, Egypt" | |
| ], | |
| "redirectionUrls" => [ | |
| "successUrl" => $successUrl, | |
| "failUrl" => $failUrl, | |
| "pendingUrl" => $pendingUrl | |
| ], | |
| "cartItems" => [ | |
| [ | |
| "name" => $serviceName ? $serviceName : "Service Booking", | |
| "price" => $amount, | |
| "quantity" => 1 | |
| ] | |
| ] | |
| ]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment