Skip to content

Conversation

@alcalawil
Copy link
Contributor

@alcalawil alcalawil commented Jun 23, 2023

to test

  1. checkout payment-app-example on branch task/wil/str-653
  2. checkout payment-app on task/andrin/str-653
  3. checkout string sdk on task/wil/str-653
  4. Run string-api, dashboard-api, and dashboard-app on develop
  5. Create an API Key
  6. In string-sdk:
    a. be sure you have the up to date env vars!
    b. un yarn; yarn bundle
    c. Copy the contents of the ./dist into a new folder ./dist_1
    d. Create a new package.json file in the ./dist_1 folder (use the code attached below)
    e. from ./dist_1 run yarn link
  7. In payment-app
    a. make sure to have the necessary env variables
    b. run yarn; yarn dev
  8. in payment-app-example
    a. set your wallet address and api key in .env
    b. run yarn link @stringpay/sdk
    c. run yarn; yarn dev
  9. go to localhost:5173
  10. you should see the payment form.
  11. Complete the form and click on submit. You should receive a verification email, verify it and then a transaction should be created
{
	"name": "@stringpay/sdk",
	"version": "0.2.3",
	"main": "./index.mjs",
	"license": "Apache-2.0",
	"description": "String Checkout SDK",
	"author": "string.xyz",
	"types": "./index.d.ts",
	"files": [
		"./*"
	],
	"scripts": {
		"bundle": "tsup",
		"dev:types": "yarn build:types -w",
		"compile:lib": "tsup --format esm,cjs",
		"build:lib": "yarn compile:lib --minify",
		"build": "yarn lint && yarn build:lib",
		"prepublish": "yarn build",
		"release": "npm run build && npm publish",
		"lint": "eslint .",
		"test": "jest --coverage"
	},
	"devDependencies": {
		"@types/jest": "^29.5.2",
		"@typescript-eslint/eslint-plugin": "^5.61.0",
		"@typescript-eslint/parser": "^5.61.0",
		"eslint": "^8.43.0",
		"jest": "^29.5.0",
		"ts-jest": "^29.1.0",
		"tsup": "^7.1.0",
		"typescript": "^5.1.3"
	},
	"dependencies": {
		"@fingerprintjs/fingerprintjs-pro": "^3.8.1",
		"redaxios": "0.5.1"
	},
	"repository": {
		"type": "git",
		"url": "git+https://github.com/String-xyz/string-sdk.git"
	},
	"bugs": {
		"url": "https://github.com/String-xyz/string-sdk/issues"
	},
	"homepage": "https://string.xyz"
}

clean

get rid of rollup.js

fixes
saito-sv
saito-sv previously approved these changes Jul 4, 2023
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
// "resolveJsonModule": true,
Copy link
Collaborator

Choose a reason for hiding this comment

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

should this be removed?

ocasta181

This comment was marked as outdated.

@ocasta181 ocasta181 requested a review from saito-sv July 9, 2023 03:18
@ocasta181 ocasta181 merged commit d3f9582 into develop Jul 9, 2023
@ocasta181 ocasta181 deleted the task/wil/str-653 branch July 9, 2023 03:41
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.

5 participants