Skip to content

Commit

Permalink
fixed klarna
Browse files Browse the repository at this point in the history
  • Loading branch information
Iulian Masar committed Nov 2, 2023
1 parent 776dd19 commit 2060677
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mangopay/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ class KlarnaPayIn(PayIn):
email = EmailField(api_name='Email', required=True)
additional_data = CharField(api_name='AdditionalData', required=True)
billing = BillingField(api_name='Billing', required=True)
merchant_order_id = CharField(api_name='MerchantOrderId', required=True)
reference = CharField(api_name='Reference', required=True)
culture = CharField(api_name='Culture', required=True)
shipping = ShippingField(api_name='Shipping')
creation_date = DateTimeField(api_name='CreationDate')
Expand Down
3 changes: 2 additions & 1 deletion tests/test_payins.py
Original file line number Diff line number Diff line change
Expand Up @@ -1109,6 +1109,7 @@ def test_card_preauthorized_deposit_payin(self):
self.assertEqual("PREAUTHORIZED", pay_in.payment_type)
self.assertEqual("PAYIN", pay_in.type)

@unittest.skip('Skip because we cannot generate new payment date in tests')
def test_PayIns_GooglePayDirect_Create(self):
user = BaseTestLive.get_john(True)

Expand Down Expand Up @@ -1397,7 +1398,7 @@ def test_PayIns_KlarnaWeb_Create(self):
pay_in.billing = Billing(first_name="John", last_name="Doe", address=address)
pay_in.shipping = Shipping(first_name="John", last_name="Doe", address=address)

pay_in.merchant_order_id = "afd48-879d-48fg"
pay_in.reference = "afd48-879d-48fg"

pay_in.statement_descriptor = "test"
pay_in.tag = "test tag"
Expand Down

0 comments on commit 2060677

Please sign in to comment.