Redirect

  • konstantina
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 8 months ago #100670 by konstantina
Redirect was created by konstantina
Hello, I am making a new payment plugin. Some months ago i did another, in both I have a problem, the redirect only works by clicking a link and not by its own.
WORKING:
Code:
(echo '</br/><a href="http://www.vivapayments.com/web/newtransaction.aspx?ref='.$ordercode.'" >Click here for Viva Payment</a>';)

IM TRYING THIS ONE NOW, ANY IDEA?:
Code:
$send_it_2 = "https://euro.test.modirum.com/vpos/shophandlermpi"; ?> <form id="eurobank_redirect1" name="eurobank_redirect" method="POST" action="<?php echo $send_it_2 ?>" accept-charset="UTF-8" >

Please Log in or Create an account to join the conversation.

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
6 years 8 months ago #100683 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic Redirect
Hello Konstantina,

I am sorry but is this post related to EShop?

Sincerely, Giang

Please Log in or Create an account to join the conversation.

  • konstantina
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 8 months ago - 6 years 8 months ago #100694 by konstantina
Replied by konstantina on topic Redirect
Ok my first post was really bad to be answered, sorry.

I am trying to find why my redirect is not working. I found out that might be something with the encoding because i get "invalid digest" warning and the documentation is saying tha form data HAVE TO BE IN UTF8. Is this working?
Code:
$digest= base64_encode(sha1(utf8_encode($form_data,true)));

My code is
Code:
<?php defined('_JEXEC') or die(); class os_eurobank extends os_payment { public function processPayment($data) { $form_data = ""; $form_data_array = array(); $form_mid = '111111'; $form_data_array[1] = $form_mid; $form_order_id = $data['order_id']; $form_data_array[2] = $form_order_id; $form_order_amount = $data['total']; $form_data_array[3] = $form_order_amount; $form_currency = $data['currency']; $form_data_array[4] = $form_currency; $form_email = $data['email']; $form_data_array[5] = $form_email; $form_confirm_url = 'hide/index.php?option=com_eshop&view=checkout&layout=complete'; $form_data_array[6] = $form_confirm_url; $form_cancel_url = 'hide/index.php?option=com_eshop&view=checkout&layout=cancel&id=' . $data['order_id']; $form_data_array[7] = $form_cancel_url; $form_secret = 'Cardlink1'; $form_data_array[8] = $form_secret; $form_data = implode("", $form_data_array); $digest= base64_encode(sha1(utf8_encode($form_data,true)));
Last edit: 6 years 8 months ago by konstantina.

Please Log in or Create an account to join the conversation.

Moderators: Giang Dinh Truong