Skip to content

docs(BTI-1951): add pay by bank example - #31

Merged
vildanbina merged 1 commit into
developfrom
BTI-1951-pay-by-bank-example
Nov 13, 2026
Merged

vildanbina merged 1 commit into
developfrom
BTI-1951-pay-by-bank-example

Conversation

@vildanbina

Copy link
Copy Markdown
Collaborator

Summary

Adds a runnable Pay by Bank example. Most other payment methods already had one, and the PHP and Node SDKs ship a Pay by Bank example too.

 examples/
 ├── ideal_payment.py
+├── pay_by_bank.py      # pay with issuer, full refund, partial refund
 ├── paypal_payment.py
__main__
  example_pay()                  # paybybank Pay, Issuer=ABNANL2A, prints redirect URL
  example_full_refund(txn_key)   # Refund, AmountCredit = 25.50
  example_partial_refund(txn_key)# Refund, AmountCredit = 10.00

Same layout as examples/ideal_payment.py. Bank list and CountryCode are left out: PayByBankBuilder doesn't support them yet.

Evidence

  • Before: examples/ had no Pay by Bank file.
    After: offline run with dummy keys and the HTTP call stubbed builds these requests, matching the Buckaroo Pay by Bank docs:
Pay:     ServiceList=[PayByBank/Pay, Parameters=[Issuer=ABNANL2A]], AmountDebit=25.5
Refund:  ServiceList=[PayByBank/Refund], AmountCredit=25.5, OriginalTransactionKey=<key>
Partial: ServiceList=[PayByBank/Refund], AmountCredit=10.0, OriginalTransactionKey=<key>
  • ruff check . and ruff format --check . pass (note: examples/ is excluded from ruff in pyproject.toml).
  • pytest: 2504 passed.
  • Not yet run live against the test environment. The refunds need a pay transaction that was completed on the test page first.

Merge Danger

Door: two-way

Blast Radius: none

New example file only. No library code changes, nothing imports it.

- Add examples/pay_by_bank.py covering pay with a pre-selected issuer, full refund and partial refund, in the same layout as the iDEAL example
@vildanbina
vildanbina merged commit 16504d9 into develop Nov 13, 2026
6 checks passed
@vildanbina
vildanbina deleted the BTI-1951-pay-by-bank-example branch November 13, 2026 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants