dotpay / drupalcommerce

drupalcommerce
0 stars 2 forks source link

URLC notifications not accepted if the user changes his email on dotPay site #2

Closed lklimek closed 7 years ago

lklimek commented 8 years ago

When users' e-mail does not match e-mail address from order, URLC notifications don't work. Using latest 2.0.2 release.

Steps to reproduce:

  1. Configure dotpay payment method rule as follows:

    • fill in seller ID and PIN with data from test service
    • set test mode to on
    • dotpay widget disabled
    • all other options - disabled or empty
  2. Place new order with e-mail "me@somedomain.com"

  3. Select payment with dotPay

  4. Drupal creates redirect to dotPay website; in my case, selected payment method is "mBank mTransfer" and you can fill in personal data: first name (it's empty), last name (it's empty), e-mail

POST request is sent to https://ssl.dotpay.pl/test_payment/ ; request parameters (anonymized): id: xxxxxx amount:10.00 currency:PLN control:173 description:Order 173 lang:pl URL:http://some.url/dotpay/173/back URLC:http://some.url/dotpay/confirm type:0 ch_lock:0 api_version:dev email:pawel@somewhere.com bylaw:1 personal_data:1 p_info:some.url chk:75c16.................

  1. Fill in first name, last name and change email to "lukasz@somewhere.com" (or any other value).
  2. Click "Pay"
  3. Click "Accept"
  4. Click "Next".
  5. DotPay displays: Payment result: completed. Click "back to shop".
  6. Browser goes back to Drupal ( /dotpay/173/back?status=OK ). It displays "Payment wait for confirmation by Dotpay"
  7. Wait until you'll get timeout ("Timeout of waiting for confirmation of payment")
  8. Go to dotPay admin panel and check the order there. You'll see that URLC has failed with "DrupalCommerce - FAIL EMAIL"
tbajorek commented 8 years ago

Please to try it now, after last commit.

lklimek commented 7 years ago

Works for me in the last release.