So I made a module that should collect some knowledge and redirect consumer and that knowledge to a fee web site.
operate payment_upload_form($type, &$form_state){ $type = array(); $type['#action'] = 'www.somepaymantsite.com'; $type['#method'] = 'POST'; $type['CustomerFirstName'] = array( '#title' => t('First identify'), '#sort' => 'textfield', '#required' => TRUE, '#measurement' => 25, ); $type['CustomerLastName'] = array( '#title' => t('Final identify'), '#sort' => 'textfield', '#required' => TRUE, '#measurement' => 25, ); and so forth.... $type['customersubmit'] = array( '#worth' => 'Pay now', '#sort' => 'submit', '#submit' => array('wspay_submit'), ); return $type; } operate payment_submit($type, &$form_state){ $possibility = array( 'ShopID'=>'xzy', 'ShoppingCartID' => $temp_cid, 'TotalAmount'=> $quantity, 'Signature' => $signature, 'ReturnURL' =>'http://some_sitecom', 'CancelURL' => 'http://some_site.com', 'ReturnErrorURL' => 'http://some_site.com/1', 'CustomerFirstName' => $form_state['values']['CustomerFirstName'], 'CustomerLastName' => $form_state['values']['CustomerLastName'], .... ); $choices = array( 'methodology' => 'POST', 'knowledge' => drupal_http_build_query($possibility), 'timeout' => 15, 'headers' => array('Content material-Kind' => 'utility/x-www-form-urlencoded'), ); $response = drupal_http_request('www.somepaymantsite.com', $choices); $response->redirect_url = 'www.somepaymantsite.com';
Drupal Development Company drawback is that it doesn’t redirect me on Drupal Development Service first go, however after I use Drupal Development Service similar ShoppingCartID it redirects me and I get an error as a result of Drupal Development Service ID is Drupal Development Service similar(it want’s to be totally different each time), however Drupal Development Service knowledge is in Drupal Development Service URL . So my query is why does it not redirect Drupal Development Service consumer with Drupal Development Service knowledge to Drupal Development Service web site when he clicks Pay now.
———————- EDIT ————-
How am i able to create a center web page in drupal that has this knowledge and sends it like that, that means a affirmation web page :
<type identify=“pay“ motion=“https://to.Drupal Development Service.store.one thing“ methodology=“POST“> <enter sort=“hidden“ identify=“ID“ worth=“some_value“> <enter sort=“hidden“ identify=“ID2“ worth=“some_value“> <enter sort=“hidden“ identify=“ID3“ worth=“some_value“> <enter sort=“submit“ worth=“Pay now“> </type>