Added paymob integration pay with this methods
methods = ['CARD', 'SOUHOOLA', 'GET_GO', 'VALU', 'BANK_INSTALLMENTS', 'PREMIUM_CARD']
// payment example
gateway('paymob')
->method("CARD")
->query([
"delivery_needed"=> "false",
"amount_cents"=> "100",
"currency"=> "EGP",
// "merchant_order_id"=> 5,
"items" => [
[
"name"=> "ASC1515",
"amount_cents"=> "500000",
"description"=> "Smart Watch",
"quantity"=> "1"
],
[
"name"=> "ERT6565",
"amount_cents"=> "200000",
"description"=> "Power Bank",
"quantity" => "1"
]
],
"shipping_data" => [
"apartment"=> "803",
"email"=> "[email protected]",
"floor"=> "42",
"first_name"=> "Clifford",
"street"=> "Ethan Land",
"building"=> "8028",
"phone_number"=> "+86(8)9135210487",
"postal_code"=> "01898",
"extra_description"=> "8 Ram , 128 Giga",
"city"=> "Jaskolskiburgh",
"country"=> "CR",
"last_name"=> "Nicolas",
"state"=> "Utah"
],
"shipping_details" => [
"notes" => " test",
"number_of_packages"=> 1,
"weight" => 1,
"weight_unit" => "Kilogram",
"length" => 1,
"width" =>1,
"height" =>1,
"contents" => "product of some sorts"
],
"billing_data" => [
"email" => "[email protected]",
"first_name" => "mohamed",
"last_name" => "ahmed",
"phone_number" => "+201234567890",
"street" => "Ethan Land",
"apartment" => "803",
"floor" => "42",
"building" => "8028",
"shipping_method" => "PKG",
"postal_code" => "01898",
"city" => "Jaskolskiburgh",
"country" => "CR",
"state" => "Utah"
],
])
// ->redirect()
->purchase();
Not compleleted yet still there is methods not implemented
not implemented methods = ['KIOSK', 'MWALLET','CASHONDELIVERY', 'REFUND', 'CANCEL']
Please review code and give me feedback.