Skip to content

Releases: square/ember-square-payment-form

Add support for gift cards

27 Oct 23:00
Compare
Choose a tag to compare

You can now add gift cards by yielding the PaymentForm.GiftCardInput component:

<SquarePaymentForm as |PaymentForm|>
  <PaymentForm.GiftCardInput/>
</SquarePaymentForm>

Add inputEventReceived callback

26 Oct 18:32
42e4472
Compare
Choose a tag to compare

➕ New Features

  • Added support for passing the inputEventReceived callback as an option to <SquarePaymentForm> and <SquarePaymentFormStyled>

Improve SCA error response formatting

08 Jan 19:40
f9a2eeb
Compare
Choose a tag to compare

🐛 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

08 Jan 18:50
Compare
Choose a tag to compare

🐛 Bugfixes

  • #53 Improved handling of SCA verification errors so that they're accessible by consumers

SCA Flow Improvements

07 Jan 22:19
Compare
Choose a tag to compare

🐛 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

31 Oct 16:54
4984685
Compare
Choose a tag to compare

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:

<SquarePaymentForm
  @createVerificationDetails={{action "createVerificationDetails"}}
  as |PaymentForm|
>
  {{!-- your form goes here --}}
</SquarePaymentForm>

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

20 Aug 17:03
a7c3674
Compare
Choose a tag to compare
Pre-release

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

24 Jul 21:59
cbaa3a6
Compare
Choose a tag to compare

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

06 Jun 16:25
e19bc69
Compare
Choose a tag to compare
Pre-release

This version drops the dependency for Typescript and adds compatibility for the entire Ember 3.x series, instead of 3.8+.

Initial Release

18 Mar 06:41
Compare
Choose a tag to compare
ember install ember-square-payment-form@0.1.0