![]() create_payout ( reference_id, "46701234567", "197001019876", 10.00, callback_url, message = "Test payout message." ) # Retrieve info about the payout payout_retrieved = swish_client. from getswish.utils import generate_transaction_id reference_id = generate_transaction_id () # Perform a payment request payout = swish_client. ![]() # Use generate_transaction_id for convenience. # This reference could be order id or similar. amount ) # Example - Payout API # Generate a merchant specific reference. id ) # Refund payment the whole amount to the previous payer which now is the payee. id ) # Cancel the payment payment_cancelled = swish_client. create_payment ( 100.00, callback_url, "46701234567", message = "Product name." ) # Retrieve info about the payment payment_retrieved = swish_client. create_payment ( 100.00, callback_url, message = "Product name." ) # Perform a payment request - M-commerce. ![]() SwishClient () callback_url = "" # Example - Commerce API # Perform a payment request - E-commerce. The example code uses the test environment and certificates in this library. The signing certificate, private key and serial is only required when using the payout API. The communication certificates are create through yourīank portal after the appropriate agreements are signed and signing certificates are set up after additional payout The client setup require that all the certificatesĪre available through file paths which are given on client setup. Signing certificates and keys for signing payout in the payout api. Swish api integration require communication certificates and keys to integrate with the commerce api and additional Client library to integrate with the swish commerce and payout api.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |