Категории |
помогите настроить модуль оплаты...добрый день, В модулях оплаты process_button() function process_button() { global $customer_id, $order, $sendto, $osPrice, $currencies, $cart_prochange_id, $shipping; $process_button_string = ''; $order_sum = $order->info['total']; $process_button_string = os_draw_hidden_field('PRO_FIELD_1', substr($cart_prochange_id, strpos($cart_prochange_id, '-')+1)) . os_draw_hidden_field('PRO_CLIENT', MODULE_PAYMENT_PROCHANGE_MERCHANT_PRO_CLIENT) . os_draw_hidden_field('PRO_RA', MODULE_PAYMENT_PROCHANGE_MERCHANT_PRO_RA) . os_draw_hidden_field('PRO_PAYMENT_DESC', substr($_SESSION['cart_prochange_id'], strpos($_SESSION['cart_prochange_id'], '-')+1)) . os_draw_hidden_field('PRO_SUMMA', $order_sum); return $process_button_string; } Это как пример из оплаты PROCHANGE Вставляю этот код <input type="hidden" name="*scart"> <input type="hidden" name="wsb_version" value="2"> <input type="hidden" name="wsb_language_id" value="rusian"> <input type="hidden" name="wsb_storeid" value="11111111"> <input type="hidden" name="wsb_store" value="Название вашего магазина"> <input type="hidden" name="wsb_order_num" value="ORDER-12345678"> <input type="hidden" name="wsb_test" value="1"> <input type="hidden" name="wsb_currency_id" value="BYR"> <input type="hidden" name="wsb_seed" value="1242649174"> <input type="hidden" name="wsb_return_url" value="http://your site url.com/success.php"> <input type="hidden" name="wsb_cancel_return_url" value="http://your site url.com/cancel.php"> <input type="hidden" name="wsb_notify_url" value="http://your site url.com/notify.php"> <input type="hidden" name="wsb_email" value="no@body.tld"> <input type="hidden" name="wsb_phone" value="22-333-333"> <input type="hidden" name="wsb_invoice_item_name[]" value="Товар 1"> <input type="hidden" name="wsb_invoice_item_quantity[]" value="2"> <input type="hidden" name="wsb_invoice_item_price[]" value="10000"> <input type="hidden" name="wsb_invoice_item_name[]" value="Товар 2"> <input type="hidden" name="wsb_invoice_item_quantity[]" value="1"> <input type="hidden" name="wsb_invoice_item_price[]" value="500"> <input type="hidden" name="wsb_total" value="21950"> <input type="hidden" name="wsb_signature" value="40aa8af3ce7a1f7c3635ac2227475094a59d574c"> <input type="hidden" name="wsb_tax" value="1050"> <input type="hidden" name="wsb_shipping_name" value="Стоимость доставки"> <input type="hidden" name="wsb_shipping_price " value="980"> <input type="hidden" name="wsb_discount_name" value="Скидка на товар"> <input type="hidden" name="wsb_discount_price" value="580"> <input type="sumbit" value="Купить"> в таком виде function process_button() { global $customer_id, $order, $sendto, $osPrice, $currencies, $cart_webtopay_id, $shipping; $process_button_string = ''; $order_sum = $order->info['total']; $process_button_string = os_draw_hidden_field('*scart') . os_draw_hidden_field('wsb_version', '2') . os_draw_hidden_field('wsb_language_id', 'rusian') . os_draw_hidden_field('wsb_storeid', '796909321') . os_draw_hidden_field('wsb_store', 'WEBPAY Merchant') . os_draw_hidden_field('wsb_order_num', 'ORDER-12345678') . os_draw_hidden_field('wsb_test', '1') . os_draw_hidden_field('wsb_currency_id', 'BYR') . os_draw_hidden_field('wsb_seed', '1242649174') . os_draw_hidden_field('wsb_return_url', os_href_link('http://your site url.com/success.php') . os_draw_hidden_field('wsb_cancel_return_url', os_href_link('http://your site url.com/cancel.php') . os_draw_hidden_field('wsb_notify_url', os_href_link('http://your site url.com/notify.php') . os_draw_hidden_field('wsb_email', os_href_link('no@body.tld') . os_draw_hidden_field('wsb_phone', '22-333-333') . os_draw_hidden_field('wsb_invoice_item_name[]', 'Товар 1') . os_draw_hidden_field('wsb_invoice_item_quantity[]', '2') . os_draw_hidden_field('wsb_invoice_item_price[]', '10000') . os_draw_hidden_field('wsb_total', '21950') . os_draw_hidden_field('wsb_signature', '0aa8af3ce7a1f7c3635ac2227475094a59d574c') . os_draw_hidden_field('wsb_tax', '1050') . os_draw_hidden_field('wsb_shipping_name', 'Стоимость доставки') . os_draw_hidden_field('wsb_shipping_price', '0') . os_draw_hidden_field('wsb_discount_name', 'Скидка на товар') . os_draw_hidden_field('wsb_discount_price', '580') . os_draw_hidden_field('sumbit', 'Купить') ; return $process_button_string; } у меня ничего не получается. Так примитивно ничего не выйдет. Надо ж задавать значения по правилам, которые установлены платежной системой, а Вы тыкаете что попало, и что-то хорошее хотите получить... korshunov, буду рад если подскажите ка это сделать. |
|