Skip to content

Commit

Permalink
Update stripe.go
Browse files Browse the repository at this point in the history
  • Loading branch information
svenschaper committed Feb 10, 2023
1 parent 3366a0d commit 7b1c748
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stripe.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,11 @@ func (web *WebAdmin) UpdateCustomer(sub stripe.Subscription) {
c, err := customer.Get(custId, &params)
if err != nil {
fmt.Println("Check Costumer failed " + err.Error())
return
}
if c == nil {
fmt.Println("Customer not found ")
return
}
profil := web.GetOne(web.Collection, bson.M{web.MailTitle: c.Email}).Customer()
profil.StripeAccount = custId
Expand Down

0 comments on commit 7b1c748

Please sign in to comment.