Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Change network value from mainnet to regtest #26

Merged
merged 4 commits into from
Oct 7, 2021
Merged

Conversation

tigh-latte
Copy link
Contributor

Currently in testing the payment body says "network": "mainnet" on regtest.

@mergify mergify bot added the bug Something isn't working label Oct 6, 2021
Copy link
Contributor

@theflyingcodr theflyingcodr left a comment

Choose a reason for hiding this comment

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

Think network should come from PayD - possibly from the destinations endpoint

@@ -51,7 +53,7 @@ func (p *paymentRequest) CreatePaymentRequest(ctx context.Context, args p4.Payme
// here we store paymentRef in extended data to allow some validation in payment flow
merchant.ExtendedData["paymentReference"] = args.PaymentID
return &p4.PaymentRequest{
Network: "mainnet",
Network: string(p.deployCfg.Network),
Copy link
Contributor

Choose a reason for hiding this comment

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

This should probably come from payd actually rather than being set on P4, this has been something on my internal backlog to fix but hadn't got round to it yet.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So should payd be dumb to the network it's running against as well?

Copy link
Contributor

@theflyingcodr theflyingcodr left a comment

Choose a reason for hiding this comment

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

LGTM

@mergify mergify bot merged commit 678ff56 into master Oct 7, 2021
@mergify mergify bot deleted the fix/regtest branch October 7, 2021 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants