Skip to content

Commit

Permalink
Add support for card token.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed Dec 1, 2023
1 parent d492d4c commit 2941dee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/PaymentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ public function jsonSerialize(): object {
$object_builder->set_optional( 'dueDate', $due_date->format( 'Y-m-d' ) );
}

// Credit card.
$object_builder->set_optional( 'cardToken', $this->card_token );

Check failure on line 362 in src/PaymentRequest.php

View workflow job for this annotation

GitHub Actions / phpstan / phpstan

Access to an undefined property Pronamic\WordPress\Mollie\PaymentRequest::$card_token.

// IDeal.
$object_builder->set_optional( 'issuer', $this->issuer );

Expand Down

0 comments on commit 2941dee

Please sign in to comment.