Class: Bootpay::Commerce::CartModule
- Inherits:
-
Object
- Object
- Bootpay::Commerce::CartModule
- Defined in:
- lib/bootpay/commerce/cart.rb
Instance Method Summary collapse
-
#initialize(bootpay) ⇒ CartModule
constructor
A new instance of CartModule.
-
#order_preview(params = {}) ⇒ Object
주문 미리보기 (배송비/할인 권위적 계산) POST /v1/cart/order-preview.
Constructor Details
#initialize(bootpay) ⇒ CartModule
Returns a new instance of CartModule.
6 7 8 |
# File 'lib/bootpay/commerce/cart.rb', line 6 def initialize(bootpay) @bootpay = bootpay end |
Instance Method Details
#order_preview(params = {}) ⇒ Object
주문 미리보기 (배송비/할인 권위적 계산) POST /v1/cart/order-preview
member_mode=‘guest’ (기본): cart_items 필수member_mode=‘member’: 서버 장바구니 사용 (user 토큰 필요)
15 16 17 |
# File 'lib/bootpay/commerce/cart.rb', line 15 def order_preview(params = {}) @bootpay.post('cart/order-preview', params) end |