From de12af5f828caf53a902327cd23789cc3ab4117d Mon Sep 17 00:00:00 2001 From: Matt Glaman Date: Mon, 22 Mar 2021 22:47:57 -0500 Subject: [PATCH] Subscription payment key expects payment type --- src/DataTypes/Subscription.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DataTypes/Subscription.php b/src/DataTypes/Subscription.php index 133263b..1376463 100644 --- a/src/DataTypes/Subscription.php +++ b/src/DataTypes/Subscription.php @@ -23,7 +23,7 @@ public function addPaymentSchedule(PaymentSchedule $paymentSchedule) public function addPayment(PaymentMethodInterface $payment) { - $this->properties['payment'] = $payment->toArray(); + $this->properties['payment'][$payment->getType()] = $payment->toArray(); } public function addOrder(Order $order)