Problem/Motivation

It seems my checkout sequence isn't correct, in step 2 I get the buy option and get the paypal popup after this, I can confirm the subscription and paypal tell me I get a last step to confirm the buy order finally, but after confirmation the subscription the buy order is completet...

I think we have to add code for the authorization state...

'PAYMENTREQUEST_0_PAYMENTACTION' => 'Sale',
Authorization must be set and the checkout sequenze is wrong
'PAYMENTREQUEST_0_PAYMENTACTION' => 'Authorization',

Comments

splus created an issue. See original summary.

splus’s picture

Title: Missing last order confirmation » Missing last order confirmation / authorization
Issue summary: View changes
splus’s picture

Issue summary: View changes
avpaderno’s picture

Assigned: splus » Unassigned
Issue tags: -confirmation
la vague illuminee’s picture

Hello,

I think I have the same issue, the payment is in paypal (both merchant and customer) as paid, but in drupal, the order is completed, and the payment is on state "autorization".

When the payment is created, it's on "autorization" state

$payment = $payment_storage->create([
      'state' => 'autorization',
      //[...]
]);

I this we can say here "completed". Patch #1

$payment = $payment_storage->create([
      'state' => 'completed',
      //[...]
]);

For my case, I need to have transitions events, so i create it as "new" and setState('completed') after. Patch #2

$payment = $payment_storage->create([
      'state' => 'new',
      //[...]
]);
$payment->setState('completed');
vuil’s picture

Status: Active » Needs review
StatusFileSize
new732 bytes
vuil’s picture

Status: Needs review » Fixed

  • vuil committed c29a846 on 8.x-1.x
    Issue #3179531 by Guillaume Aveline, vuil, splus, apaderno: Missing last...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.