Please Log in to join the conversation.
/**
* Handles changes of payment basket $paymentBasket payment statuses events
* This function may be called more than one time for events different than the Completed or Processed state if there are multiple notifications
*
* $unifiedStatus status mappings with e.g. Paypal status:
* CB Unified status Paypal status
* Completed <-- Completed
* Processed <-- Processed, Canceled_Reversal
* Denied <-- Denied, Expired, Failed, Voided
* Refunded <-- Reversed, Refunded, Partially-Refunded
* Pending <-- Pending, In-Progress
* RegistrationCancelled <-- A new cb registration got cancelled by user (e.g. paypal cancel payment button)
*
* @param UserTable $user User paying
* @param cbpaidPaymentBasket $paymentBasket CBPaid Payment basket being paid (corresponding to PayPal variable names)
* @param cbpaidUsersubscriptionRecord[] $subscriptions CBPay Subscriptions being paid
* @param string $unifiedStatus new unified status: see above
* @param string $previousUnifiedStatus previous unified status: see above
* @param string $eventType type of event (paypal type): 'web_accept', 'subscr_payment', 'subscr_signup', 'subscr_modify', 'subscr_eot', 'subscr_cancel', 'subscr_failed'
* @param cbpaidPaymentNotification $notification notification object of the payment
* @return void
*/
public function onCPayAfterPaymentStatusUpdateEvent( $user, $paymentBasket, $subscriptions, $unifiedStatus, $previousUnifiedStatus, $eventType, $notification )
Please Log in to join the conversation.
Please Log in to join the conversation.
No, but since it's a code action you've access to PHP directly. That trigger includes the basket object as var2, which you can access using $variables. The substitution INVOICE_CONTENT_HTML is just the below API call on the basket.do we have access to [INVOICE_CONTENT_HTML] in a code auto action ?
$return = $variables['var2']->displayInvoice( $user, true, false );
$return = $variables['var2']->displayBasket( null, null, 'invoice' );
$return = $variables['var2']->displayBasket( null, null );
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.