@@ -14,7 +14,7 @@ def _makeOne(self):
1414 return self ._getTargetClass ().from_data ({
1515 'object' : 'source' ,
1616 'id' : 'src_test' ,
17- 'type' : 'internet_banking_test ' ,
17+ 'type' : 'promptpay ' ,
1818 'flow' : 'redirect' ,
1919 'amount' : 100000 ,
2020 'currency' : 'thb'
@@ -26,7 +26,7 @@ def test_create_offsite(self, api_call):
2626 self .mockResponse (api_call , """{
2727 "object": "source",
2828 "id": "src_test",
29- "type": "internet_banking_test ",
29+ "type": "promptpay ",
3030 "flow": "redirect",
3131 "amount": 100000,
3232 "currency": "thb"
@@ -35,7 +35,7 @@ def test_create_offsite(self, api_call):
3535 source = class_ .create (
3636 amount = 100000 ,
3737 currency = 'thb' ,
38- type = 'internet_banking_test '
38+ type = 'promptpay '
3939 )
4040 self .assertTrue (isinstance (source , class_ ))
4141 self .assertEqual (source .id , 'src_test' )
@@ -46,7 +46,7 @@ def test_create_offsite(self, api_call):
4646 {
4747 'amount' : 100000 ,
4848 'currency' : 'thb' ,
49- 'type' : 'internet_banking_test '
49+ 'type' : 'promptpay '
5050 }
5151 )
5252
@@ -86,7 +86,7 @@ def test_retrieve(self, api_call):
8686 self .mockResponse (api_call , """{
8787 "object": "source",
8888 "id": "src_test",
89- "type": "internet_banking_test ",
89+ "type": "promptpay ",
9090 "flow": "redirect",
9191 "amount": 100000,
9292 "currency": "thb"
@@ -95,7 +95,7 @@ def test_retrieve(self, api_call):
9595 source = class_ .retrieve ('src_test' )
9696 self .assertTrue (isinstance (source , class_ ))
9797 self .assertEqual (source .id , 'src_test' )
98- self .assertEqual (source .type , 'internet_banking_test ' )
98+ self .assertEqual (source .type , 'promptpay ' )
9999 self .assertEqual (source .flow , 'redirect' )
100100 self .assertEqual (source .amount , 100000 )
101101 self .assertEqual (source .currency , 'thb' )
0 commit comments