Releases: square/ember-square-payment-form
Add support for gift cards
You can now add gift cards by yielding the PaymentForm.GiftCardInput
component:
Add inputEventReceived callback
➕ New Features
- Added support for passing the
inputEventReceived
callback as an option to<SquarePaymentForm>
and<SquarePaymentFormStyled>
Improve SCA error response formatting
🐛 Bugfixes
- #54 Improved handling of SCA verification errors so that they're always returned as an array, ensuring consistency with the way normal card-nonce errors are handled.
SCA Error Handling Improvements
🐛 Bugfixes
- #53 Improved handling of SCA verification errors so that they're accessible by consumers
SCA Flow Improvements
🐛 Bugfixes
- #52 Fixed an issue where an exception would be thrown in the payment form onCardNonceResponseReceived callback when the SCA flow was not completed successfully due to a null pointer exception
Add basic SCA support
This release adds support for SCA returning a verificationToken
as part of the handleCardNonceResponse
callback when you provide a createVerificationDetails
function to the SquarePaymentForm
component.
The createVerificationDetails
function should create an SqVerificationDetails
object described in the SqPaymentForm reference.
Then, you can pass it to the component:
You'll then be able to access the verificationToken
as the last parameter in handleCardNonceResponse
:
handleCardNonceResponse(
errors,
nonce,
cardData,
billingContact,
shippingContact,
shippingOption,
verificationToken
) {
}
Add environment support
This version adds support for specifying the production
or sandbox
environment in the environment.js
file of your Ember app to support the Sandbox beta.
module.exports = function(environment) {
var ENV = {
modulePrefix: 'host',
environment: environment,
baseURL: '/',
locationType: 'auto',
EmberENV: {
// ...
},
APP: {
// ...
},
squarePaymentForm: {
environment: 'sandbox'
}
};
};
If you have a custom URL to the Payment Form library, you can use the jsUrl
parameter to specify it:
squarePaymentForm: {
jsUrl: 'https://example.com/square-js-lib'
}
Add support for removing postal code field
Customers in countries outside the US can now remove the postal code field from their form without running into validation errors.
Add Ember 3.x Compatibility
This version drops the dependency for Typescript and adds compatibility for the entire Ember 3.x series, instead of 3.8+.
Initial Release
ember install [email protected]