Skip to content

Commit a206100

Browse files
Add redirectUrl widget parameter (#296)
* Add redirectUrl widget parameter * yarn upgrade
1 parent b135212 commit a206100

File tree

4 files changed

+234
-253
lines changed

4 files changed

+234
-253
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [2.2.1] - 2024-08-01
6+
- Added `redirectUrl` widget parameter
7+
58
## [2.2.0] - 2024-06-11
69
- Added new `addresses` and `assets` initialization parameters to simplify `destinationWallets`
710
- Marked the `destinationWallets` initialization parameter as deprecated

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@coinbase/cbpay-js",
33
"repository": "https://github.com/coinbase/cbpay-js",
4-
"version": "2.2.0",
4+
"version": "2.2.1",
55
"license": "MIT",
66
"main": "dist/index.js",
77
"module": "dist/index.mjs",
@@ -33,6 +33,7 @@
3333
"check-ci": "yarn run typecheck && yarn run lint && yarn run test"
3434
},
3535
"devDependencies": {
36+
"@babel/core": "^7.0.0",
3637
"@swc/core": "^1.2.237",
3738
"@types/chrome": "0.0.168",
3839
"@types/jest": "^27.0.2",
@@ -41,7 +42,6 @@
4142
"@typescript-eslint/eslint-plugin-tslint": "^4.5.0",
4243
"@typescript-eslint/parser": "4.26.1",
4344
"babel-jest": "^27.5.1",
44-
"@babel/core": "^7.0.0",
4545
"eslint": "^6.8.0",
4646
"eslint-config-prettier": "^8.4.0",
4747
"eslint-plugin-jest": "^22.15.2",
@@ -50,9 +50,9 @@
5050
"jest-chrome": "^0.7.2",
5151
"prettier": "^2.5.1",
5252
"ts-jest": "^27.1.3",
53+
"tslint": "^6.0.0",
5354
"tsup": "^6.2.2",
54-
"typescript": "^4.4.4",
55-
"tslint": "^6.0.0"
55+
"typescript": "^4.4.4"
5656
},
5757
"engines": {
5858
"node": ">= 14"

src/types/onramp.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ type BaseOnRampAppParams = {
7171
* `addresses: { "0x1": ["base", "ethereum"] }, assets: ["USDC"]`
7272
*
7373
* The values in this list can either be asset symbols like BTC, ETH, or asset UUIDs that you can get from the Buy
74-
* Options API {@link https://docs-cdp-onramp-preview.cbhq.net/onramp/docs/api-configurations/#buy-options}.
74+
* Options API {@link https://docs.cdp.coinbase.com/onramp/docs/api-configurations/#buy-options}.
7575
*/
7676
assets?: string[];
7777
/** The preset input amount as a crypto value. i.e. 0.1 ETH. This will be the initial default for all cryptocurrencies. */
@@ -89,6 +89,9 @@ type BaseOnRampAppParams = {
8989
handlingRequestedUrls?: boolean;
9090
/** ID used to link all user transactions created during the session. */
9191
partnerUserId?: string;
92+
/** A URL that the user will be automatically redirected to after a successful buy/send. The domain must match a domain
93+
* on the domain allowlist in Coinbase Developer Platform (https://portal.cdp.coinbase.com/products/onramp). */
94+
redirectUrl?: string;
9295
};
9396

9497
export type OnRampAggregatorAppParams = {

0 commit comments

Comments
 (0)