pple_pay_detail->expiration_month + 0 > 0;
ok $apple_pay_detail->expiration_year + 0 > 0;
isnt($apple_pay_detail->cardholder_name, undef);
};
};
subtest "three_d_secure" => sub {
subtest
ce => $nonce
});
ok $result->is_success;
my $transaction = $result->transaction;
isnt($transaction->paypal_details->debug_id, undef);
};
};
subtest "Disbursement Details" => sub {
}
});
ok $clone_result->is_success;
my $clone_transaction = $clone_result->transaction;
isnt $clone_transaction->id, $sale_result->transaction->id;
is $clone_transaction->amount, "123.45";
=> $nonce
});
ok $payment_method_result->is_success;
isnt($payment_method_result->paypal_account->token, undef);
isnt($payment_method_result->paypal_account->image_url, undef);
is
>id,
payment_method_nonce => $nonce
});
ok $payment_method_result->is_success;
isnt($payment_method_result->credit_card->token, undef);
is($payment_method_result->credit_card->m
t_method_result->is_success;
my $apple_pay_card = $payment_method_result->apple_pay_card;
isnt($apple_pay_card->token, undef);
is($apple_pay_card->meta->name, "Net::Braintree::ApplePayCard
isnt($result->paypal_account->image_url, undef);
my $found = Net::Braintree::PayPalAccount->find($result->paypal_account->token);
isnt($found, undef);
isnt($found->email, undef);
isnt
($found->image_url, undef);
isnt($found->created_at, undef);
isnt($found->updated_at, undef);
ok($found->email eq $result->paypal_account->email);
};
subtest "it raises a not-found er
webhook_notification->kind, Net::Braintree::WebhookNotification::Kind::SubscriptionWentPastDue;
isnt $webhook_notification->timestamp, undef;
is $webhook_notification->subscription->id, "my_id";
}
k_notification->transaction->id, "my_id";
is $webhook_notification->transaction->amount, 100;
isnt $webhook_notification->transaction->disbursement_details->disbursement_date, undef;
};
subtest '
");
is($result->customer->first_name, "Johnny", "sets customer attributes (first name)");
isnt($result->customer->id, undef, "customer id != blank");
};
subtest "with CC and billing addre
});
ok $customer_result->is_success;
my $customer = $customer_result->customer;
isnt($customer->paypal_accounts, undef);
is(scalar @{$customer->paypal_accounts}, 1);
};
subt
isbursement->new($disbursement_params);
my $transactions = $disbursement->transactions();
isnt $transactions, undef;
is($transactions->first()->id(), "sub_merchant_transaction");
};
};
cription->status, 'Active';
is $result->subscription->plan_id, "integration_trialless_plan";
isnt $result->subscription->transactions->[0], undef;
is $result->subscription->failure_count, 0;
et::Braintree::TransparentRedirect->confirm($query_string_response);
ok $result->is_success;
isnt($result->customer->id, undef);
is($result->customer->first_name, "Sally", "First name is accept