Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PayPal Standard - UTF8 not working


stefan21

Recommended Posts

Running OsC 2.3.4.

 

I feel a little bit lost. In my pp standard-account I configured UTF8 charset. Testing a transaction with the sandbox the encoding does not work, but the transaction is running through without errors.

 

Following the fix posted from gergely for paypal_standard.php:

 

      $process_button_string = '';
      $parameters = array('cmd' => '_cart',
                          'upload' => '1',
                          'item_name_1' => STORE_NAME,
                          // UTF8-FIX
                          'charset' => 'UTF-8',
                          'shipping_1' => $this->format_raw($order->info['shipping_cost']),
                          'business' => MODULE_PAYMENT_PAYPAL_STANDARD_ID,
                          'amount_1' => $this->format_raw($order->info['total'] - $order->info['shipping_cost'] - $total_tax),
                          'currency_code' => $currency,
                          'invoice' => substr($cart_PayPal_Standard_ID, strpos($cart_PayPal_Standard_ID, '-')+1),
                          'custom' => $customer_id,
                          'no_note' => '1',
                          'notify_url' => tep_href_link('ext/modules/payment/paypal/standard_ipn.php', '', 'SSL', false, false),
                          'rm' => '2',
                          'return' => tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL'),
                          'cancel_return' => tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'),
                          'bn' => 'OSCOM23_PS',
                          'paymentaction' => ((MODULE_PAYMENT_PAYPAL_STANDARD_TRANSACTION_METHOD == 'Sale') ? 'sale' : 'authorization'));
 

results in the correct encoding, BUT - the transaction results in a "could not verify error".

 

Thank's for any help - I will not be able to use PP without correct UTF8 encoding.

stefan

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...