Skip to content

Commit

Permalink
fix(open banking): callback needs to go in an attributes object on th…
Browse files Browse the repository at this point in the history
…e request
  • Loading branch information
blockdylanb committed Apr 16, 2021
1 parent 2cb12d0 commit 1fb049d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,13 +329,14 @@ export default ({
yapilyCallbackUrl: 'https://www.blockchain.com/brokerage-link-success'
})
const callback = partner === 'YAPILY' ? yapilyCallbackUrl : undefined
const attributes = { callback }
try {
const data = yield call(
api.createFiatDeposit,
amount,
id,
currency,
callback
attributes
)
const { RETRY_AMOUNT, SECONDS } = POLLING
// If yapily we need to transition to another screen and poll for auth
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,18 @@ export default ({
amount: number,
bankId: string,
currency: FiatType,
callback: string | undefined
attributes: { callback: string | undefined }
) =>
authorizedPost({
url: nabuUrl,
contentType: 'application/json',
endPoint: `/payments/banktransfer/${bankId}/payment`,
data: {
amount,
attributes,
currency,
product: 'SIMPLEBUY',
orderId: uuidv4(),
callback
orderId: uuidv4()
}
})

Expand Down

0 comments on commit 1fb049d

Please sign in to comment.