Payment Processor

Hello ,,,

am about to finish my payment processor and its already working i just want to add to my posted data :

$data = [
'mid' => $processor_data['processor_params']['merchant_id'],
'lang' => $processor_data['processor_params']['language'],
'orderID' => time() . $order_id,
'orderDesc' => '#' . $order_id,
'tranAmount' => $amount,
'currency' => $processor_data['processor_params']['currency'],
'payerEmail' => $order_info['email'],
'tranFee' => $order_info[''],
'payerPhone' => $location_manager->getLocationField($order_info, 'phone', '', BILLING_ADDRESS_PREFIX),
'trType' => '1',
//'confirmUrl' => $confirm_url,
//'cancelUrl' => $cancel_url,
'billState' => $location_manager->getLocationField($order_info, 'state', '', BILLING_ADDRESS_PREFIX),
'billZip' => $location_manager->getLocationField($order_info, 'zipcode', '', BILLING_ADDRESS_PREFIX),
'billCity' => $location_manager->getLocationField($order_info, 'city', '', BILLING_ADDRESS_PREFIX),
'billAddress' => $location_manager->getLocationField($order_info, 'address', '', BILLING_ADDRESS_PREFIX),
'shipCountry' => $location_manager->getLocationField($order_info, 'country', '', SHIPPING_ADDRESS_PREFIX),
'shipState' => $location_manager->getLocationField($order_info, 'state', '', SHIPPING_ADDRESS_PREFIX),
'shipZip' => $location_manager->getLocationField($order_info, 'zipcode', '', SHIPPING_ADDRESS_PREFIX),
'shipCity' => $location_manager->getLocationField($order_info, 'city', '', SHIPPING_ADDRESS_PREFIX),
'shipAddress' => $location_manager->getLocationField($order_info, 'address', '', SHIPPING_ADDRESS_PREFIX),
];

transaction fees ( 'tranFee' => $order_info[' '], ) how can i add it

Your question is not quite clear. Please clarify

Your question is not quite clear. Please clarify

i want to send Processing Fees to the payment url ,, should i write it like this :

'processing Fees' => $order_info[' processingFees '] ??

If you mean payment surcharge, please use

$order_info['payment_surcharge']

If you mean payment surcharge, please use

$order_info['payment_surcharge']

thank you :))

You are welcome!