Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Stripe SEPA should've always had a pending status.
Please Log in to join the conversation.
Recurring I believe should be Completed as long as the IBAN has already been confirmed by Stripe. If Pending it should just be ignore when the webhook comes in until a Completed webhook arrives.Do you mean that for recurring payments we still have a Pending status before Completed ? or will it go directly to Completed or Processed ?
Only a Completed basket can be disputed. So you'd have Completed > Reversed. If you won the dispute you'd have Reversed > Canceled_Reversal where Canceled_Reversal is changed to Processed. Pending baskets being disputed will just remain pending as there's nothing to dispute.Same question, what would be the sequence of status for a Dispute ?
Probably Completed, Processed, and Pending I guess. I don't know why you want to log a Pending basket though. It may never get paid depending on what happens.If we want to always issue an invoice with this auto action independently of the payment status what is your best suggestion to act on ? maybe only Pending ? (provided it works for Recurring payments )
Please Log in to join the conversation.
Probably Completed, Processed, and Pending I guess. I don't know why you want to log a Pending basket though. It may never get paid depending on what happens.
$date = cbFormatDate( $variables['var2']->time_initiated, 1, false );
function extract_basket_item($item)
{
return $item->renderColumn();
}
$payment_basket = array (
'date' => $variables['var2']->date,
'user_id' => $variables['var2']->user_id,
'txn_type' => $variables['var2']->txn_type,
'txn_id' => $variables['var2']->txn_id,
'payment_type' => $variables['var2']->payment_type,
'address_street' => $variables['var2']->address_street,
'address_city' => $variables['var2']->address_city,
'address_state' => $variables['var2']->address_state,
'address_zip' => $variables['var2']->address_zip,
'address_country' => $variables['var2']->address_country,
'payer_business_name' => $variables['var2']->payer_business_name,
'first_name' => $variables['var2']->first_name,
'last_name' => $variables['var2']->last_name,
'payer_email' => $variables['var2']->payer_email,
'contact_phone' => $variables['var2']->contact_phone,
'vat_number' => $variables['var2']->vat_number,
'item_name' => $variables['var2']->item_name,
'item_number' => $variables['var2']->item_number,
'quantity' => $variables['var2']->quantity,
'custom' => $variables['var2']->custom,
'invoice' => $variables['var2']->invoice,
'tax' => $variables['var2']->tax,
'payment_date' => $variables['var2']->payment_date,
'shipping' => $variables['var2']->shipping,
'mc_currency' => $variables['var2']->mc_currency,
'mc_fee' => $variables['var2']->mc_fee,
'mc_gross' => $variables['var2']->mc_gross,
'mc_handling' => $variables['var2']->mc_handling,
'mc_shipping' => $variables['var2']->mc_shipping,
'payment_fee' => $variables['var2']->payment_fee,
'payment_gross' => $variables['var2']->payment_gross,
'basket_items' => $variables['var2']->loadPaymentItems()
);
$context_options = array (
'http' => array (
'method' => 'POST',
'header' => ['Content-type: application/x-www-form-urlencoded',
'Authorization: Bearer xxxxxxxxxx'],
'content' => http_build_query($payment_basket)
)
);
$context = stream_context_create($context_options);
$fp = fopen('https://xxxxxxxxxxx-webhook/xxxx', 'r', false, $context);
fpassthru($fp);
fclose($fp);
Please Log in to join the conversation.