-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcheckout.rb
68 lines (62 loc) · 1.88 KB
/
checkout.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
module Wepay
module Api
class Checkout < Base
##
# @param params [Hash] See documentation below
# @return [Hashie::Mash]
# @docs [/checkout](https://www.wepay.com/developer/reference/checkout#lookup)
#
def show(params)
post 'checkout', params
end
##
# @param params [Hash] See documentation below
# @return [Hashie::Mash]
# @docs [/checkout/find](https://www.wepay.com/developer/reference/checkout#find)
#
def find(params)
post 'checkout/find', params
end
##
# @param params [Hash] See documentation below
# @return [Hashie::Mash]
# @docs [/checkout/create](https://www.wepay.com/developer/reference/checkout#create)
#
def create(params)
post 'checkout/create', params
end
##
# @param params [Hash] See documentation below
# @return [Hashie::Mash]
# @docs [/checkout/cancel](https://www.wepay.com/developer/reference/checkout#cancel)
#
def cancel(params)
post 'checkout/cancel', params
end
##
# @param params [Hash] See documentation below
# @return [Hashie::Mash]
# @docs [/checkout/refund](https://www.wepay.com/developer/reference/checkout#refund)
#
def refund(params)
post 'checkout/refund', params
end
##
# @param params [Hash] See documentation below
# @return [Hashie::Mash]
# @docs [/checkout/capture](https://www.wepay.com/developer/reference/checkout#capture)
#
def capture(params)
post 'checkout/capture', params
end
##
# @param params [Hash] See documentation below
# @return [Hashie::Mash]
# @docs [/checkout/modify](https://www.wepay.com/developer/reference/checkout#modify)
#
def modify(params)
post 'checkout/modify', params
end
end
end
end