Forums

[resolved] [plugin: eShop] Problem with Payson-checkout (14 posts)

  1. kreutner
    Member
    Posted 1 year ago #

    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...

  2. elfin
    Moderator
    Posted 1 year ago #

    can you translate the error into English?

  3. kreutner
    Member
    Posted 1 year ago #

    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)

  4. elfin
    Moderator
    Posted 1 year ago #

    ok thanks, I'll take a look, however it may be a while before it is fixed.

  5. kreutner
    Member
    Posted 1 year ago #

    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...

  6. nasspray
    Member
    Posted 1 year ago #

    I have exact the same problem.

    Did you fix it?

  7. elfin
    Moderator
    Posted 1 year ago #

    check you have entered the right details, and that no rogue spaces are in there.

  8. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

  9. erik_hafo
    Member
    Posted 1 year ago #

    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.

  10. elfin
    Moderator
    Posted 1 year ago #

    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?

  11. erik_hafo
    Member
    Posted 1 year ago #

    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.

  12. elfin
    Moderator
    Posted 1 year ago #

    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.

  13. skargardsidyllen
    Member
    Posted 7 months ago #

    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.

  14. Christer2011
    Member
    Posted 7 months ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic