• Resolved kreutner

    (@kreutner)


    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)

    can you translate the error into English?

    Thread Starter kreutner

    (@kreutner)

    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)

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

    Thread Starter kreutner

    (@kreutner)

    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…

    I have exact the same problem.

    Did you fix it?

    Anonymous User

    (@anonymized-3085)

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

    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)

    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?

    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)

    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.

    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.

    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.