Title: [plugin: eShop] Problem with Payson-checkout
Last modified: August 19, 2016

---

# [plugin: eShop] Problem with Payson-checkout

 *  Resolved [kreutner](https://wordpress.org/support/users/kreutner/)
 * (@kreutner)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-eshop-problem-with-payson-checkout/)
 * Newly installed eShop seems to work fine until running a test payment trough 
   Payson.
 * Then Payson gives me this message:
 * > Obligatoriska parameterar som måste finnas med och vara korrekta:
   >  MD5- Obligatorisk–
   > Fel MD5, Använd parametrarna #SellerEmail# – #Cost# – #ExtraCost# – #OkUrl#–#
   > GuaranteeOffered# samt din nyckel för att beräkna MD5 Description – Obligatorisk–
   > OK SellerEmail – Obligatorisk – OK BuyerEmail – Obligatorisk – OK AgentId –
   > Obligatorisk – OK OkUrl – Obligatorisk – OK GuaranteeOffered – Obligatorisk–
   > OK Cost – Obligatorisk – OK ExtraCost – Obligatorisk – Fel format, använd komma
   > och siffror med två decimaler (100,00)
 * I assume that i need to change the extracost-value, but i have no idea how to…
   pleaze help…

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Anonymous User
 * (@anonymized-3085)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-eshop-problem-with-payson-checkout/#post-2070122)
 * can you translate the error into English?
 *  Thread Starter [kreutner](https://wordpress.org/support/users/kreutner/)
 * (@kreutner)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-eshop-problem-with-payson-checkout/#post-2070128)
 * Required parameters that must be found and be accurate:
    MD5- Required – wrong
   MD5, use the parameters #SellerEmail# – #Cost# – #ExtraCost# – #OkUrl# – #GuaranteeOffered#
   and your key to calculate MD5 Description – req – OK SellerEmail – req – OK BuyerEmail–
   req – OK AgentId – req – OK OkUrl – req – OK GuaranteeOffered – req – OK Cost–
   req – OK ExtraCost – required – wrong format, use comma and figures to two decimal
   places (100,00)
 *  Anonymous User
 * (@anonymized-3085)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-eshop-problem-with-payson-checkout/#post-2070215)
 * ok thanks, I’ll take a look, however it may be a while before it is fixed.
 *  Thread Starter [kreutner](https://wordpress.org/support/users/kreutner/)
 * (@kreutner)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-eshop-problem-with-payson-checkout/#post-2070251)
 * The extracost problem is fixed… i just needed to acctualy put a 0 in deliverycost
   in the shop… but i still get the wrong MD5 error…
 *  [nasspray](https://wordpress.org/support/users/nasspray/)
 * (@nasspray)
 * [15 years ago](https://wordpress.org/support/topic/plugin-eshop-problem-with-payson-checkout/#post-2070323)
 * I have exact the same problem.
 * Did you fix it?
 *  Anonymous User
 * (@anonymized-3085)
 * [15 years ago](https://wordpress.org/support/topic/plugin-eshop-problem-with-payson-checkout/#post-2070324)
 * check you have entered the right details, and that no rogue spaces are in there.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years ago](https://wordpress.org/support/topic/plugin-eshop-problem-with-payson-checkout/#post-2070325)
 * [http://quirm.net/wiki/eshop/setting-up-using-eshop/configuration/merchant-gateways/](http://quirm.net/wiki/eshop/setting-up-using-eshop/configuration/merchant-gateways/)
 *  [erik_hafo](https://wordpress.org/support/users/erik_hafo/)
 * (@erik_hafo)
 * [15 years ago](https://wordpress.org/support/topic/plugin-eshop-problem-with-payson-checkout/#post-2070331)
 * Esmi, that link doesn’t help at all. And Rich, it’s not a question of rogue spaces.
   I thought so as well- I struggled a long, long time to get stuff working. It’s
   actually a bug. Basically, what’s happening is wrong encoding- making OkUrl include“&”
   instead of “&”, and thus messing up the MD5 calculation.
 * Line 106 in payson.class.php reads:
 *     ```
       $OkUrl=$_POST['notify_url'];
       ```
   
 * But should read
 *     ```
       $OkUrl=html_entity_decode($_POST['notify_url']);
       ```
   
 * The same applies in payson.php, where line 60 says:
 *     ```
       $OkUrl=urlencode($_POST['notify_url']);
       ```
   
 * But should say:
 *     ```
       $OkUrl=html_entity_decode($_POST['notify_url']);
       ```
   
 * I hope this helps someone.
 *  Anonymous User
 * (@anonymized-3085)
 * [15 years ago](https://wordpress.org/support/topic/plugin-eshop-problem-with-payson-checkout/#post-2070332)
 * ahh thanks for that, I’ll change that for the next release. Can you just confirm
   that you have tested this with a live sale and it works?
 *  [erik_hafo](https://wordpress.org/support/users/erik_hafo/)
 * (@erik_hafo)
 * [15 years ago](https://wordpress.org/support/topic/plugin-eshop-problem-with-payson-checkout/#post-2070333)
 * I haven’t finalized a order yet, however I’m reaching Payson without errors- 
   both in test mode and in live mode.
 * Also, I see my last post -naturally- printed out the error wrongly. Just to clarify,
   wrong encoding inserts a “& amp ;” (without spaces) instead of a “&”. Hopefully
   I’ll be able to test some more soon.
 *  Anonymous User
 * (@anonymized-3085)
 * [15 years ago](https://wordpress.org/support/topic/plugin-eshop-problem-with-payson-checkout/#post-2070336)
 * I’d need to know if those changes effect the checking at eShop’s end, so yes 
   a finalised order in live will probably be required, or test if possible.
 *  [skargardsidyllen](https://wordpress.org/support/users/skargardsidyllen/)
 * (@skargardsidyllen)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-eshop-problem-with-payson-checkout/#post-2070433)
 * I have changed the code as suggested by erik_hafo both in payson.class.php and
   payson.php. But I still get error message when running agentintegration test 
   on payson. The error message states:
 * Required parameters that must be found and be accurate:
    MD5- Required – wrong
   MD5, use the parameters #SellerEmail# – #Cost# – #ExtraCost# – #OkUrl# – #GuaranteeOffered#
   and your key to calculate MD5 Description – req – OK SellerEmail – req – OK BuyerEmail–
   req – OK AgentId – req – OK OkUrl – req – OK GuaranteeOffered – req – OK Cost–
   req – OK ExtraCost – required – ok
 * My guess is that perhaps there is a localization issue I have set the WPLANG 
   parameter in wp-config.php to swedish define(‘WPLANG’, ‘sv_SE’); but when I change
   it back to blank or us the problem persists. I have aslo spoken to Payson support
   but they do not support this plugin so I guess I will have to try with PayPal
   or some other Merchant Gateway. Unless I get any tips from here.
 * I hope for a solution cause I think eshop seams to be a great plugin.
 *  [Christer2011](https://wordpress.org/support/users/christer2011/)
 * (@christer2011)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-eshop-problem-with-payson-checkout/#post-2070434)
 * Hi kreutner
 * what do you mean by “The extra cost problem is fixed … in just Needed to acctualy
   put a **0 in delivery cost in the shop** … but to still get the wrong MD5 error…”
 * Deliverycost, do you mean shipping? I’ve been looking but can find only shipping
   price, but not anything about deliverycosts.
    Where did you find delivery cost,
   where you can set the value to 0
 * /Christer

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘[plugin: eShop] Problem with Payson-checkout’ is closed to new replies.

 * 13 replies
 * 7 participants
 * Last reply from: [Christer2011](https://wordpress.org/support/users/christer2011/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-eshop-problem-with-payson-checkout/#post-2070434)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
