You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#5809
Payment methods id name have been rewritten to be consistent between API and Backend.
BTC-OnChain or BTC_BitcoinLike or BTC-BitcoinLike or BTC-BTCLike -> BTC-CHAIN
BTC-LightningNetwork or BTC_LightningLike or BTC_OffChain or BTC_Off-Chain -> BTC-LN
BTC-LNURLPAY->BTC-LNURL
XMR-MoneroLike->XMR-CHAIN
ZEC-ZcashLike->ZEC-CHAIN
Note that it isn't a breaking change for input data to API, as BTCPay will automatically convert the old strings to the new format.
However, data returned by BTCPay API will return the new names.
The API needed to be changed to reflect the fact payment methods doesn't have a PaymentType anymore:
Removed routes:
GET /api/v1/stores/{storeId}/payment-methods/LNURL
GET /api/v1/stores/{storeId}/payment-methods/LNURLPay/{cryptoCode}
PUT /api/v1/stores/{storeId}/payment-methods/LNURLPay/{cryptoCode}
Add includeConfig parameter defaulting to false. If true, the config of the payment method will be returned and the permission btcpay.store.canmodifystoresettings is required.
GET /api/v1/stores/{storeId}/invoices/{invoiceId}/payment-methods
Remove the cryptoCode field
Renamed paymentMethod to paymentMethodId
Add a currency field
Added route:
PUT /api/v1/stores/{storeId}/payment-methods/{paymentMethodId}
GET /api/v1/stores/{storeId}/payment-methods/{paymentMethodId}
Renamed route:
GET api/v1/stores/{storeId}/payment-methods/onchain/{cryptoCode}/preview to api/v1/stores/{storeId}/payment-methods/{paymentMethodId}/preview
POST api/v1/stores/{storeId}/payment-methods/onchain/{cryptoCode}/generate to api/v1/stores/{storeId}/payment-methods/{paymentMethodId}/generate
Removed properties cryptoCode and paymentMethod from their response.
Added property paymentMethodId, config so the format of generate is the same as the GET /api/v1/stores/{storeId}/payment-methods/{paymentMethodId}
Webhook change:
Rename paymentMethod field to paymentMethodId
Legacy Bitpay API:
Removal of the confirmed state, an invoice directly goes to the complete state.
Apps
Removal of embeddedCSS, customCSSLink for PaymentRequests, Crowdfund app and PoS app.
Instead, customizations should be done at the store's branding level through logoUrl, cssUrl, paymentSoundUrl and brandColor. (#5947)
Modal Checkout
When the Checkout is in modal mode, it posts the message { invoiceId, status } to the parent window. Previously, the status could be new, paidcomplete, invalid, expired state. These have been replaced by New, Processing, Settled, Invalid, Expired.
The text was updated successfully, but these errors were encountered:
This is documenting the breaking changes for 2.0.
Pull payments
period
property anymore (Remove period concept from PullPayment #5963)Payment Methods
#5809
Payment methods id name have been rewritten to be consistent between API and Backend.
BTC-OnChain
orBTC_BitcoinLike
orBTC-BitcoinLike
orBTC-BTCLike
->BTC-CHAIN
BTC-LightningNetwork
orBTC_LightningLike
orBTC_OffChain
orBTC_Off-Chain
->BTC-LN
BTC-LNURLPAY
->BTC-LNURL
XMR-MoneroLike
->XMR-CHAIN
ZEC-ZcashLike
->ZEC-CHAIN
Note that it isn't a breaking change for input data to API, as BTCPay will automatically convert the old strings to the new format.
However, data returned by BTCPay API will return the new names.
The API needed to be changed to reflect the fact payment methods doesn't have a PaymentType anymore:
Removed routes:
GET /api/v1/stores/{storeId}/payment-methods/LNURL
GET /api/v1/stores/{storeId}/payment-methods/LNURLPay/{cryptoCode}
PUT /api/v1/stores/{storeId}/payment-methods/LNURLPay/{cryptoCode}
DELETE /api/v1/stores/{storeId}/payment-methods/LNURLPay/{cryptoCode}
GET /api/v1/stores/{storeId}/payment-methods/LightningNetwork
GET /api/v1/stores/{storeId}/payment-methods/LightningNetwork/{cryptoCode}
PUT /api/v1/stores/{storeId}/payment-methods/LightningNetwork/{cryptoCode}
DELETE /api/v1/stores/{storeId}/payment-methods/LightningNetwork/{cryptoCode}
GET /api/v1/stores/{storeId}/payment-methods/OnChain
GET /api/v1/stores/{storeId}/payment-methods/onchain/{cryptoCode}
PUT /api/v1/stores/{storeId}/payment-methods/onchain/{cryptoCode}
DELETE /api/v1/stores/{storeId}/payment-methods/onchain/{cryptoCode}
Modified route:
GET /api/v1/stores/{storeId}/payment-methods
cryptoCode
fieldpaymentMethod
topaymentMethodId
fielddata
property toconfig
networkFee
topaymentMethodFee
enabled
toonlyEnabled
includeConfig
parameter defaulting tofalse
. Iftrue
, the config of the payment method will be returned and the permissionbtcpay.store.canmodifystoresettings
is required.GET /api/v1/stores/{storeId}/invoices/{invoiceId}/payment-methods
cryptoCode
fieldpaymentMethod
topaymentMethodId
currency
fieldAdded route:
PUT /api/v1/stores/{storeId}/payment-methods/{paymentMethodId}
DELETE /api/v1/stores/{storeId}/payment-methods/{paymentMethodId}
GET /api/v1/stores/{storeId}/payment-methods/{paymentMethodId}
Renamed route:
GET api/v1/stores/{storeId}/payment-methods/onchain/{cryptoCode}/preview
toapi/v1/stores/{storeId}/payment-methods/{paymentMethodId}/preview
POST api/v1/stores/{storeId}/payment-methods/onchain/{cryptoCode}/generate
toapi/v1/stores/{storeId}/payment-methods/{paymentMethodId}/generate
cryptoCode
andpaymentMethod
from their response.paymentMethodId
,config
so the format ofgenerate
is the same as theGET /api/v1/stores/{storeId}/payment-methods/{paymentMethodId}
Webhook change:
paymentMethod
field topaymentMethodId
Legacy Bitpay API:
confirmed
state, an invoice directly goes to thecomplete
state.Apps
Removal of
embeddedCSS
,customCSSLink
for PaymentRequests, Crowdfund app and PoS app.Instead, customizations should be done at the store's branding level through
logoUrl
,cssUrl
,paymentSoundUrl
andbrandColor
. (#5947)Modal Checkout
{ invoiceId, status }
to the parent window. Previously, the status could benew
,paid
complete
,invalid
,expired
state. These have been replaced byNew
,Processing
,Settled
,Invalid
,Expired
.The text was updated successfully, but these errors were encountered: