Skip to content

Commit

Permalink
fix(reader-activation): add metadata to reader registered on donation
Browse files Browse the repository at this point in the history
  • Loading branch information
adekbadek committed Aug 3, 2022
1 parent 871300d commit 722724c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/reader-revenue/class-stripe-connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ public static function handle_donation( $config ) {
$payment_method_id = $config['payment_method_id'];

if ( ! isset( $client_metadata['userId'] ) && Reader_Activation::is_enabled() ) {
$user_id = Reader_Activation::register_reader( $email_address, $full_name, true, false );
$user_id = Reader_Activation::register_reader( $email_address, $full_name, true, $client_metadata );
if ( ! \is_wp_error( $user_id ) && false !== $user_id ) {
$client_metadata['userId'] = $user_id;
}
Expand Down

0 comments on commit 722724c

Please sign in to comment.