Skip to content

Commit

Permalink
Merge pull request #4 from PAYONE-GmbH/develop
Browse files Browse the repository at this point in the history
Merge develop into master
  • Loading branch information
ehrdi authored Aug 21, 2024
2 parents 504ab2d + 253f57c commit 99d3926
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 9 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Welcome to the PAYONE Commerce Platform Client JavaScript SDK for the PAYONE Com
- [Changelog Generation with Conventional Changelog](#changelog-generation-with-conventional-changelog)
- [Merging the Release Branch](#merging-the-release-branch)
- [GitHub Action for Release](#github-action-for-release)
- [Optional: Creating a GitHub Release](#optional-creating-a-github-release)
- [Minimum Supported Browser Versions](#minimum-supported-browser-versions)
- [License](#license)

Expand Down Expand Up @@ -730,6 +731,19 @@ After successfully merging all changes to the `master` branch, an admin can trig
- Ensure that all changes are committed to the `master` branch.
- Navigate to the Actions tab on your GitHub repository and manually trigger the release action for the `master` branch.

### Optional: Creating a GitHub Release

Once the release has been published to npm, developers can start using the latest version of the SDK. However, if you want to make the release more visible and include detailed release notes, you can optionally create a GitHub release.

1. **Navigate to the Releases Page**: Go to the "Releases" section of your repository on GitHub.
2. **Draft a New Release**: Click "Draft a new release".
3. **Tag the Release**: Select the version tag that corresponds to the version you just published on npm (e.g., `v0.1.0`).
4. **Release Title**: Add a descriptive title for the release (e.g., `v0.1.0 - Initial Release`).
5. **Auto-Generated Release Notes**: GitHub can automatically generate release notes based on merged pull requests and commit history. You can review these notes, adjust the content, and highlight important changes.
6. **Publish the Release**: Once you're satisfied with the release notes, click "Publish release".

Creating a GitHub release is optional, but it can provide additional context and visibility for your users. For detailed guidance, refer to the [GitHub documentation on managing releases](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository).

By following these steps, you can efficiently manage and streamline the release process for the PAYONE Commerce Platform Client JavaScript SDK, ensuring that the new release is published from the `master` branch while maintaining consistency and reliability.

**[back to top](#table-of-contents)**
Expand Down
2 changes: 1 addition & 1 deletion applepay-demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This demo application showcases the integration of Apple Pay on the web using th

- **SDK Integration**: The demo uses the `pcp-client-javascript-sdk`, which simplifies the Apple Pay session management. You only need to pass the correct configuration and a DOM selector.
- **Pre-configured Apple Pay Button**: A ready-to-use Apple Pay button appears on your webpage, allowing users to open the payment sheet, select a payment method, adjust shipping and billing information, and verify themselves using Face ID or Touch ID.
- **Payment Token and More**: The `onpaymentauthorized` callback returns not only a payment token but also additional billing and shipping information that can be used to process payments with Payone.
- **Payment Token and More**: The `onpaymentauthorized` callback returns not only a payment token but also additional billing and shipping information that can be used to process payments with PAYONE.

## Setup

Expand Down
2 changes: 1 addition & 1 deletion applepay-demo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ app.post('/process-payment', async (req, res) => {
console.log('Shipping contact:', req.body.shippingContact);
const body = req.body;

// Process the payment with Payone here
// Process the payment with PAYONE here

res.status(200).send({ success: true, body });
});
Expand Down
2 changes: 1 addition & 1 deletion creditcard-tokenizer-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ <h1>
</form>

<!-- HTML to render the credit card check response. -->
<h2>Response from Payone Client-API</h2>
<h2>Response from PAYONE Client-API</h2>
<div id="jsonResponse">
<pre id="jsonResponsePre">Nothing received yet.</pre>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/PCPCreditCardTokenizer.interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export interface Config {
*/
formNotCompleteCallback?: () => void;
/**
* Define an ID for the Payone script to be loaded. If not set, a default ID (payone-hosted-script) will be used.
* Define an ID for the PAYONE script to be loaded. If not set, a default ID (payone-hosted-script) will be used.
*/
payOneScriptId?: string;
}
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ export interface OrderLineDetailsInput {
* Used for PAYONE Buy Now, Pay Later (BNPL).
* @example https://shop.url/watches/watch01
*/
productURL?: string;
productUrl?: string;
/**
* Format: uri
* @description URL of a product image.
Expand Down
8 changes: 4 additions & 4 deletions src/lib/PCPCreditCardTokenizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ export class PCPCreditCardTokenizer {
private ccIconsContainerElement?: HTMLElement;

/**
* Creates a new instance of the PCPCreditCardTokenizer, initializes the Payone script, and attaches event handlers to the submit button.
* Creates a new instance of the PCPCreditCardTokenizer, initializes the PAYONE script, and attaches event handlers to the submit button.
* @param {Config} config - The configuration object sets up styles, auto card type detection, credit card icons, and callbacks
* @param {Omit<Request, 'hash'>} request - The request object contains the parameters for the Payone API
* @param {Omit<Request, 'hash'>} request - The request object contains the parameters for the PAYONE API
* @param {string} pmiPortalKey - The pmiPortalKey is used to create a hash for the request object
* @returns {Promise<PCPCreditCardTokenizer>} A new instance of the PCPCreditCardTokenizer
*/
Expand Down Expand Up @@ -64,7 +64,7 @@ export class PCPCreditCardTokenizer {
this.createCreditCardIconElements(this.config.ccIcons);
}

// add callback function to window object so it can be called by the Payone script
// add callback function to window object so it can be called by the PAYONE script
window.payCallback = this.payCallback;
}

Expand Down Expand Up @@ -190,7 +190,7 @@ export class PCPCreditCardTokenizer {
script.id = scriptId;
script.onload = () => resolve();
script.onerror = () =>
reject(new Error('Failed to load the Payone script.'));
reject(new Error('Failed to load the PAYONE script.'));
document.head.appendChild(script);
});
}
Expand Down

0 comments on commit 99d3926

Please sign in to comment.