Skip to content

Commit af8087a

Browse files
authored
Merge pull request #21 from payjp/feature/three-d-secure
tds_finishエンドポイントへの対応
2 parents 994b16a + 71e1deb commit af8087a

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

payjp/resource.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
# coding: utf-8
22

3-
import datetime
43
import json
54
import logging
65
import sys
76

87
from six import string_types
98
from six.moves.urllib.parse import quote_plus
109

11-
from . import (
12-
api_requestor,
13-
error,
14-
util,
15-
)
10+
from payjp import api_requestor, error, util
1611

1712
logger = logging.getLogger('payjp')
1813

@@ -337,6 +332,10 @@ def reauth(self, **kwargs):
337332
self.refresh_from(self.request('post', url, kwargs))
338333
return self
339334

335+
def tds_finish(self, **kwargs):
336+
url = self.instance_url() + '/tds_finish'
337+
self.refresh_from(self.request('post', url, kwargs))
338+
return self
340339

341340
class Event(ListableAPIResource):
342341
pass

payjp/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = '0.1.0'
1+
VERSION = '0.2.0'

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
setup(
1616
name="payjp",
17-
version="0.1.0",
17+
version="0.2.0",
1818
description='PAY.JP python bindings',
1919
author="PAY.JP",
2020
author_email='support@pay.jp',

0 commit comments

Comments
 (0)