Skip to content

DAT-745: Update payment button library to version 3.1.0 and add transaction API version selection#34

Open
alexabreuplanet wants to merge 2 commits into
masterfrom
DAT-745-add-version-field
Open

DAT-745: Update payment button library to version 3.1.0 and add transaction API version selection#34
alexabreuplanet wants to merge 2 commits into
masterfrom
DAT-745-add-version-field

Conversation

@alexabreuplanet

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Datatrans payment button examples/documentation to reflect Payment Button v3.1.0 and demonstrates selecting the Datatrans Transaction API version via payment.transaction.version.

Changes:

  • Bump hosted payment-button script URLs in the HTML and React examples from 3.0.0 to 3.1.0.
  • Update README usage to instantiate PaymentButton and align event names (init/create) plus document the new token event.
  • Add transaction.version defaults and a UI control in the vanilla example to switch Transaction API version.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
README.md Updates usage example to instance-based API and aligns documented events (adds token).
react-example/PaymentButtonWithHook.js Updates hosted script URL to payment-button v3.1.0.
react-example/paymentButton.js Updates hosted script URL to payment-button v3.1.0.
react-example/index.js Adds transaction.version to the React example payment object.
index.js Sets default transaction.version and re-renders button when version selector changes.
index.html Updates hosted script URL to v3.1.0, adds a Transaction API version selector, and documents transaction.version in the reference table.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread index.html
Comment thread index.js
@alexabreuplanet
alexabreuplanet requested a review from pstadler July 15, 2026 16:09
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.

3 participants