Sha256: 9adb5e2f64f1b3e19d0ca1dde3c32aef7c7f8444627e2eebbcbddb042c7a9e34

Contents?: true

Size: 1.42 KB

Versions: 12

Compression:

Stored size: 1.42 KB

Contents

## Spree 2.3.2 (unreleased) ##

*   Support existing credit card feature on checkout.

    Checkouts_controller#update now uses the same Order::Checkout#update_from_params
    from spree frontend which help us to remove a lot of duplicated logic. As a
    result of that `payment_source` params must be sent now outsite the `order` key.

    Before you'd send a request like this:

        ```ruby
        api_put :update, :id => order.to_param, :order_token => order.guest_token,
          :order => {
            :payments_attributes => [{ :payment_method_id => @payment_method.id.to_s }],
            :payment_source => { @payment_method.id.to_s => { name: "Spree" } }
          }
        ```

    Now it should look like this:

        ```ruby
        api_put :update, :id => order.to_param, :order_token => order.guest_token,
          :order => {
            :payments_attributes => [{ :payment_method_id => @payment_method.id.to_s }]
          },
          :payment_source => {
            @payment_method.id.to_s => { name: "Spree" }
          }
        ```

    Josh Hepworth and Washington

*   api/orders/show now display credit cards as source under payment

    Washington Luiz

*   refactor the api to use a general importer in core gem.

    Peter Berkenbosch

* Shipment manifests viewed within the context of an order no longer return variant info. The line items for the order already contains this information. #4498

    * Ryan Bigg

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spree_api-2.3.13 CHANGELOG.md
spree_api-2.3.12 CHANGELOG.md
spree_api-2.3.11 CHANGELOG.md
spree_api-2.3.10 CHANGELOG.md
spree_api-2.3.9 CHANGELOG.md
spree_api-2.3.8 CHANGELOG.md
spree_api-2.3.7 CHANGELOG.md
spree_api-2.3.6 CHANGELOG.md
spree_api-2.3.5 CHANGELOG.md
spree_api-2.3.4 CHANGELOG.md
spree_api-2.3.3 CHANGELOG.md
spree_api-2.3.2 CHANGELOG.md