We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cf0b6c commit 5af4f64Copy full SHA for 5af4f64
paymentrails/payment_gateway.py
@@ -28,6 +28,8 @@ def find(self, payment_id, batch_id):
28
def create(self, body, batch_id):
29
if body is None:
30
raise InvalidFieldException("Body cannot be None.")
31
+ elif batch_id is None:
32
+ raise InvalidFieldException("Batch ID cannot be None.")
33
endpoint = '/v1/batches/' + batch_id + '/payments/'
34
response = paymentrails.configuration.Configuration.client(
35
self.config).post(endpoint, body)
0 commit comments