Skip to content

Commit f653573

Browse files
committed
jquery.org: Store member name as Stripe customer description.
1 parent ba86d05 commit f653573

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mu-plugins/jquery.org/stripe.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ public static function charge() {
3434
// Create Stripe subscription
3535
$customer = Stripe_Customer::create( array(
3636
'email' => $email,
37-
'card' => $token
37+
'card' => $token,
38+
'description' => $_REQUEST['name']
3839
) );
3940
$charge = $customer->updateSubscription( array(
4041
'plan' => $_REQUEST['planId']
@@ -49,7 +50,7 @@ public static function charge() {
4950
'user_pass' => wp_generate_password(),
5051
'user_login' => $email,
5152
'user_email' => $email,
52-
'display_name' => $_REQUEST[ 'name' ]
53+
'display_name' => $_REQUEST['name']
5354
) );
5455
}
5556

0 commit comments

Comments
 (0)