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)