remove paypal info when becoming stripe patron

This commit is contained in:
Thibault Duplessis 2017-04-20 23:50:37 +02:00
parent f030f10c3e
commit 1c94df5d00

View file

@ -337,7 +337,9 @@ final class PlanApi(
).expireInOneMonth(!freq.renew))
case Some(patron) => patronColl.update(
$id(patron.id),
patron.copy(stripe = Patron.Stripe(customerId).some).expireInOneMonth(!freq.renew)
patron.copy(
stripe = Patron.Stripe(customerId).some
).removePayPal.expireInOneMonth(!freq.renew)
)
} void