Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License

Copyright (c) 2019 Payload (https://payload.co)
Copyright (c) 2024 Payload (https://payload.com)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Payload.js React Library

A React library for integrating [Payload.js](https://docs.payload.co/#secure-input) Secure Input.
A React library for integrating [Payload.js](https://docs.payload.com/#secure-input) Secure Input.

## Installation

Expand Down Expand Up @@ -34,7 +34,7 @@ import {

### API Authentication

To authenticate with the Payload, you'll need a live or test client token for Payload.js. Client tokens can be generated using the secret key accessible from within the Payload dashboard. For more information on generating a client token, see [Authentication](https://docs.payload.co/ui/authentication/).
To authenticate with the Payload, you'll need a live or test client token for Payload.js. Client tokens can be generated using the secret key accessible from within the Payload dashboard. For more information on generating a client token, see [Authentication](https://docs.payload.com/ui/authentication/).

### Simple Checkout Form

Expand Down Expand Up @@ -117,4 +117,4 @@ function OnboardButton() {
## Documentation

To get further information on the Payload.js Secure Input library and capabilities,
visit the unabridged [Payload Documentation](https://docs.payload.co/ui/payload-react/).
visit the unabridged [Payload Documentation](https://docs.payload.com/ui/payload-react/).
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "payload-react",
"version": "1.2.2",
"description": "A simple React wrapper around Payload.js. See https://docs.payload.co for more information.",
"version": "1.2.3",
"description": "A simple React wrapper around Payload.js. See https://docs.payload.com for more information.",
"main": "dist/payload-react.js",
"module": "dist/payload-react.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function getPayload() {

const s = document.createElement('script')

s.setAttribute('src', 'https://payload.co/Payload.js')
s.setAttribute('src', 'https://payload.com/Payload.js')
s.addEventListener('load', () => resolve(window.Payload))
s.addEventListener('error', reject)

Expand Down
2 changes: 1 addition & 1 deletion tests/dynamic-payload.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ describe('Payload.js', () => {
expect(document.body.appendChild).toHaveBeenCalled()

const script = document.querySelector('script')
expect(script.src).toBe('https://payload.co/Payload.js')
expect(script.src).toBe('https://payload.com/Payload.js')
})
})