braintree

Braintree dropin form issue - nonce string not being generated

北城余情 提交于 2019-12-12 03:22:41
问题 I'm trying to use the dropin form from braintree but it produces a weird behaviour. I can successfully place the form in a view: <form id="createTransactionForm" method="post" action="#"> <div id="payment-form"></div> <input type="submit" value="Test - Pay"> </form> <script> var braintreeToken = @Html.Raw(Json.Encode(Model.brainTreeToken)); braintree.setup( braintreeToken, "dropin", { container: "payment-form" }); ... Here's the result: They state in their documentation (3rd paragraph) that

BrainTree what do I paste in Braintree.create(“YourClientSideEncryptionKey”);

╄→尐↘猪︶ㄣ 提交于 2019-12-11 23:29:09
问题 I'm new to braintree. I'm at first steps : https://github.com/braintree/braintree_php_guide/tree/master/1_getting_paid in the index.php there is a part var braintree = Braintree.create("YourClientSideEncryptionKey"); It's not clear ; I replace the "YourClientSideEncryptionKey" by what ? Thanks 回答1: Finally I was able to create a first sandbox transaction ;) Going AJAX instead to using index.php... My code : .JS Files (don't forget to include jquery.js...) function braintreeTest ( cardNumber,

JavaScript: how to use Braintree paymentMethod nonce bu

别说谁变了你拦得住时间么 提交于 2019-12-11 16:38:33
问题 I am using Braintree v3 for a client implementation. I am using the dropin UI. I am trying to create a new vaulted card. I have an api from the backend team I’m working with to update payment method. It takes a user token in the Header and if successful, the response is a payment method nonce. I’m just not sure what to do with this paymentMethod nonce or where to actually call the api. 回答1: Disclaimer: I work for Braintree. If you need a more detailed answer, please don't hesitate to reach

search for active subscription for a customer in Braintree payments

懵懂的女人 提交于 2019-12-11 16:14:03
问题 In my website, I am using Braintree payment gateway for both card payments and PayPal transactions with auto renewal subscriptions. i am creating the customer and storing the card in Braintree vault for auto renewal.. also using the same customer id for that customer PayPal transactions (if happened) before proceeding the payment, just need to check for active subscription, for both auto renewable and auto renewal cancelled and still expiration date is due subscription existence. is there any

Braintree - Hosted Fields - Uncaught TypeError: FormNapper requires an HTMLFormElement element or the id string of one

寵の児 提交于 2019-12-11 15:13:32
问题 I am trying to customize the layout of my Braintree payment form using hosted fields. However, I am getting an error saying: Uncaught TypeError: FormNapper requires an HTMLFormElement element or the id string of one. at new n (braintree-2.32.1.min.js:4) at i._setupHostedFields (braintree-2.32.1.min.js:5) at new i (braintree-2.32.1.min.js:5) at braintree-2.32.1.min.js:5 at braintree-2.32.1.min.js:3 at c.<computed> (braintree-2.32.1.min.js:3) at configuration?authorizationFingerprint

Braintree marketplace - What happens if Master Merchant do charge client at time time of sale, but has to pay to submerchant

試著忘記壹切 提交于 2019-12-11 11:53:12
问题 I have implemented PHP braintree API in a project, I want to use Marketplace api for the same. Now, we have promotional events and we do not charge client, but we have to pay amount to sub-merchant who has delivered goods. So below is the code to add service fees, which is clear that at the time of sale we have to add sub-merchant id for merchantAccountId, amount will be payment charged from client, what is paymentMethodNonce? $result = Braintree_Transaction::sale(array( 'merchantAccountId' =

Braintree with Web Forms and data-encrypted-value

一笑奈何 提交于 2019-12-11 11:09:26
问题 I am trying to use Braintree's API for payments on my side, and although they have excellent documentation, I am stuck when trying to receive the values from the form (not receiving any values from the fields at all). The code is as follows: HTML: <p> <asp:Label ID="Label1" runat="server" Text="Credit Card Number"></asp:Label><br /> <asp:TextBox data-encrypted-name="number" ID="CardNumberTextBox" AutoCompleteType="Disabled" MaxLength="20" Width="350" runat="server"></asp:TextBox> </p> <p>

Braintree Android - Use Cardbuilder to add credit card at SAQ A PCI Compliance Level

試著忘記壹切 提交于 2019-12-11 10:17:57
问题 I am new to Braintree and I want to have my own custom UI to store Credit card. I am using the following code to tokenize the credit card. CardBuilder cardBuilder = new CardBuilder() .cardNumber(mCardForm.getCardNumber()) .expirationMonth(mCardForm.getExpirationMonth()) .expirationYear(mCardForm.getExpirationYear()); Card.tokenize(mBraintreeFragment, cardBuilder); I already have PCI SAQ A Compliance level. My question will it be safe carry out this operation considering my PCI level? 回答1:

Braintree payments won't work with AJAX submit

浪尽此生 提交于 2019-12-11 09:58:59
问题 I have a dynamic AJAX submit. I am trying to submit Braintree (PayPal) payment data into payment.php using AJAX. Unfortunately, Braintree is giving me a nonce error. Braintree creates an input with a code (nonce) on submit, but my submit is submitted before the code is created. Braintree gives me a script that creates the code <script src="https://js.braintreegateway.com/v2/braintree.js"></script> And I use something like $(document).on("submit","form",function(event){ if(!$(this).is("[action

Method override for the designated initializer of the superclass '-init' not found

安稳与你 提交于 2019-12-11 09:58:34
问题 I've encountered following address of Braintree in my XCode 7. Before upgrading to XCode 7, everything is working smooth. Now got that problem. Please let me know how to solve that issue. /.../Pods/Braintree/Braintree/API/Client/BTAPIResponseParser.m:9:17: Method override for the designated initializer of the superclass '-init' not found 回答1: What version of Braintree are you using? It may be that you need to update to 3.9.3, which includes xCode7 support. (https://github.com/braintree