You are here

public function StripePaymentEvent::setTotal in Stripe 2.x

File

src/Event/StripePaymentEvent.php, line 105

Class

StripePaymentEvent
Wraps a stripe event for webhook.

Namespace

Drupal\stripe\Event

Code

public function setTotal(int $amount, string $label) {
  $this->total['amount'] = $amount;
  $this->total['label'] = $label;
}