Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
ehrdi committed Aug 21, 2024
2 parents bd7989f + d8c9f8a commit 9baed12
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
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
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 9baed12

Please sign in to comment.