We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having problem using clearSelectedPaymentMethod :
clearSelectedPaymentMethod
"braintree-web": "^3.54.2", "braintree-web-drop-in": "1.26.0", "braintree-web-drop-in-react": "^1.1.0",
And I am trying to clear the selected option over a button like this. In render:
<DropIn options={{ authorization: clientToken, paypal: { flow: "vault" }, paypalCredit: { flow: "vault" }, googlePay: { transactionInfo: { totalPriceStatus: "FINAL", totalPrice: "0", currencyCode: "USD", }, }, applePay: { flow: "vault", displayName: "My Store", paymentRequest: { total: { label: "My Store", amount: "0", }, // We recommend collecting billing address information, at minimum // billing postal code, and passing that billing postal code with all // Apple Pay transactions as a best practice. requiredBillingContactFields: ["postalAddress"], }, }, preselectVaultedPaymentMethod: false, paymentOptionPriority: [ "applePay", "paypal", "paypalCredit", "googlePay", ], }} onInstance={(instance) => (this.instance = instance)} onNoPaymentMethodRequestable={ this.onNoPaymentMethodRequestable } onPaymentMethodRequestable={() => this.onPaymentMethodRequestable(event) } onPaymentOptionSelected={this.onPaymentOptionSelected} onClearSelectedPaymentMethod={() => this.clearSelectedPaymentMethod()} /> <button onClick={this.clearSelectedPaymentMethod}>Clear</button>
clearSelectedPaymentMethod : I defined like this.
clearSelectedPaymentMethod(e) { this.instance.clearSelectedPaymentMethod(); }
so the Options appear like this.
After I click on any one option:
Then after I click on the clear button doesn't reset the options back to the first image.
Can you help me, please? Thank you.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Having problem using
clearSelectedPaymentMethod
:And I am trying to clear the selected option over a button like this. In render:
clearSelectedPaymentMethod
: I defined like this.so the Options appear like this.
After I click on any one option:
Then after I click on the clear button doesn't reset the options back to the first image.
Can you help me, please? Thank you.
The text was updated successfully, but these errors were encountered: