Closed remcotolsma closed 2 years ago
Change:
$payment->add_period( $subscription->new_period() ); $payment->add_subscription( $subscription );
to just:
$payment->add_period( $subscription->new_period() );
Also don't allow the same $subscription more then once in $payment->subscriptions.
$subscription
$payment->subscriptions
https://github.com/pronamic/wp-pay-core/commit/02a2b60afc652c2879bb2406a166d0675d38a57f
Change:
to just:
Also don't allow the same
$subscription
more then once in$payment->subscriptions
.