Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- array(
- //Customer's Personal Information
- 'cc_first_name' => $user['User']['name'], //This will be prefilled as Credit Card First Name
- 'cc_last_name' => $user['User']['name'], //This will be prefilled as Credit Card Last Name
- 'cc_phone_number' => '00966',
- 'phone_number' => $user['User']['mobile_number'], // Classera phone number
- 'email' => $user['User']['email'],
- //Customer's Billing Address (All fields are mandatory)
- //When the country is selected as USA or CANADA, the state field should contain a String of 2 characters containing the ISO state code otherwise the payments may be rejected.
- //For other countries, the state can be a string of up to 32 characters.
- 'billing_address' => "riyadh SAU",
- 'city' => "riyadh",
- 'state' => "riyadh",
- 'postal_code' => "00966",
- 'country' => "SAU",
- //Customer's Shipping Address (All fields are mandatory)
- 'address_shipping' => "Riyadh SAU",
- 'city_shipping' => "riyadh",
- 'state_shipping' => "riyadh",
- 'postal_code_shipping' => "00966",
- 'country_shipping' => "SAU",
- //Product Information
- "products_per_title" => "Enroll course", //Product title of the product. If multiple products then add “||” separator
- 'quantity' => "1", //Quantity of products. If multiple products then add “||” separator
- 'unit_price' => $amount, //Unit price of the product. If multiple products then add “||” separator.
- "other_charges" => "0.00", //Additional charges. e.g.: shipping charges, taxes, VAT, etc.
- 'amount' => $amount, //Amount of the products and other charges, it should be equal to: amount = (sum of all products’ (unit_price * quantity)) + other_charges
- 'discount'=> '0.0', //Discount of the transaction. The Total amount of the invoice will be= amount - discount
- 'currency' => 'SAR', //Currency of the amount stated. 3 character ISO currency code
- //Invoice Information
- 'title' => $user['User']['name'], // Customer's Name on the invoice
- "msg_lang" => "en", //Language of the PayPage to be created. Invalid or blank entries will default to English.(Englsh/Arabic)
- "reference_no" => "1231231", //Invoice reference number in your system
- //Website Information
- "site_url" => "http://svaapi.classera.com", //The requesting website be exactly the same as the website/URL associated with your PayTabs Merchant Account
- 'return_url' => "http://svaapi.classera.com/Payments/verify_payment/lecture_id:$lecture_id/u_id:$user_id/program_id:$program_id/http_origin:$http_origin/?access_token=a3d8c21b54c8ad8e4cc0d7d066b476c2ce9da709",
- "cms_with_version" => "API USING PHP",
- "paypage_info" => "1"
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement