braintree

How do I test Braintree + Apple Pay on a real device?

泄露秘密 提交于 2019-12-01 03:16:13
问题 I am developing an app using Apple Pay for a US Client from outside the US. I am using Braintree + Apple Pay. We support real credit cards to Passbook, but we can't verify them. I successfully generated a client token, self.braintree and tried BT's both ways of integration. BTPaymentProvider - Our abstraction on payment method creation. if(self.braintree && ![self.braintree isKindOfClass:[NSNull class]]) { self.provider = [braintree paymentProviderWithDelegate:self]; if ([self.provider

Braintree - Why braintree transactions created via API, or via sandbox, take so much time before settled?

混江龙づ霸主 提交于 2019-11-30 18:56:29
问题 Whenever, I create a transaction via Braintree API, or via their sandbox, it goes through many statuses like Authorized, Submitted for Settlement, Settled ... and all this takes 24 hours approximately. I want to ask is there a way by which I can create a transaction in sandbox/api and it is settled or disputed instantly. I don't know why it takes so much time ... e.g. in online shopping my credit card is charged immediately. How can same be achieved via braintree payments sandbox ? 回答1: I

Braintree - paymentMethodNonceReceived not being invoked

旧时模样 提交于 2019-11-30 13:44:26
I have setup dropin UI for braintree. I can see the UI fine. Before that I created the customer and I can see the customer on braintree-sandbox. Now I want to add payment method to the customer. I am trying following code, but paymentMethodNonceReceived is not being invoked. Not sure why. braintree.setup("<?=CLIENT_TOKEN_FROM_PHP?>", "dropin", { container: "divBrainTreeContainer", paymentMethodNonceReceived: function (event, nonce) { console.log(nonce); $('#formProfile').append('<input type="hidden" name="payment_method_nonce" value="'+nonce+'" />'); $('#formProfile').submit(); } } ); Poonam

Braintree - paymentMethodNonceReceived not being invoked

隐身守侯 提交于 2019-11-29 19:30:52
问题 I have setup dropin UI for braintree. I can see the UI fine. Before that I created the customer and I can see the customer on braintree-sandbox. Now I want to add payment method to the customer. I am trying following code, but paymentMethodNonceReceived is not being invoked. Not sure why. braintree.setup("<?=CLIENT_TOKEN_FROM_PHP?>", "dropin", { container: "divBrainTreeContainer", paymentMethodNonceReceived: function (event, nonce) { console.log(nonce); $('#formProfile').append('<input type=

Retrieving a Braintree customer's subscriptions

僤鯓⒐⒋嵵緔 提交于 2019-11-29 03:30:53
I want to collect all of a Braintree Customer's subscriptions. When I browse to a customer's page in the gateway, I can see their subscriptions, but it doesn't seem that a method like subscriptions exists for Braintree::Customer , or that I can search for Braintree::Subscriptions by customer_id . There are roundabout ways that I can access all of a customer's subscriptions, but they are very slow. For example, I can retrieve all of the customer's transactions, and for each transaction, get the subscription_id (if it exists), and then retrieve the subscription with that ID. This involves a lot

braintreegateway Uncaught exception

梦想的初衷 提交于 2019-11-28 13:32:31
问题 I am using braintreegateway with the following code in sandbox mode. Code is used from developer site require_once 'braintree/lib/Braintree.php'; Braintree_Configuration::environment('sandbox'); Braintree_Configuration::merchantId('marchentid'); Braintree_Configuration::publicKey('publickey'); Braintree_Configuration::privateKey('privatekey'); $result = Braintree_Transaction::sale([ 'amount' => '100.00', 'orderId' => '123', 'merchantAccountId' => 'marchentid', 'paymentMethodNonce' =>

Retrieving a Braintree customer's subscriptions

会有一股神秘感。 提交于 2019-11-27 15:56:30
问题 I want to collect all of a Braintree Customer's subscriptions. When I browse to a customer's page in the gateway, I can see their subscriptions, but it doesn't seem that a method like subscriptions exists for Braintree::Customer , or that I can search for Braintree::Subscriptions by customer_id . There are roundabout ways that I can access all of a customer's subscriptions, but they are very slow. For example, I can retrieve all of the customer's transactions, and for each transaction, get