forked from mrwyndham/fastpocket
bugfix - adjusted email in stripe
This commit is contained in:
parent
4d98a54da4
commit
2c951ff777
Binary file not shown.
|
@ -76,7 +76,9 @@ func main() {
|
|||
existingCustomerRecord, err := app.Dao().FindFirstRecordByData("customer", "user_id", record.Id)
|
||||
if err != nil {
|
||||
//create new customer if none exists
|
||||
customerEmail := record.GetString("email")
|
||||
customerParams := &stripe.CustomerParams{
|
||||
Email: &customerEmail,
|
||||
Metadata: map[string]string{
|
||||
"pocketbaseUUID": record.GetString("id"),
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue