@@ -381,7 +381,7 @@ interface PaybisPairs {
381381
382382interface  PaybisPluginState  { 
383383  apiKey : string 
384-   partnerUrl : string 
384+   apiUrl : string 
385385  privateKeyB64 : string 
386386  partnerUserId : string 
387387} 
@@ -473,7 +473,7 @@ export const paybisRampPlugin: RampPluginFactory = (
473473
474474  const  initializeBuyPairs  =  async  ( ) : Promise < void >  =>  { 
475475    if  ( state  ==  null )  throw  new  Error ( 'Plugin not initialized' ) 
476-     const  {  apiKey,  partnerUrl : url  }  =  state 
476+     const  {  apiKey,  apiUrl : url  }  =  state 
477477
478478    if  ( paybisPairs . buy  ==  null )  { 
479479      const  response  =  await  paybisFetch ( { 
@@ -534,7 +534,7 @@ export const paybisRampPlugin: RampPluginFactory = (
534534
535535  const  initializeSellPairs  =  async  ( ) : Promise < void >  =>  { 
536536    if  ( state  ==  null )  throw  new  Error ( 'Plugin not initialized' ) 
537-     const  {  apiKey,  partnerUrl : url  }  =  state 
537+     const  {  apiKey,  apiUrl : url  }  =  state 
538538
539539    if  ( paybisPairs . sell  ==  null )  { 
540540      const  response  =  await  paybisFetch ( { 
@@ -582,7 +582,7 @@ export const paybisRampPlugin: RampPluginFactory = (
582582
583583  const  ensureStateInitialized  =  async  ( ) : Promise < void >  =>  { 
584584    if  ( state  ==  null )  { 
585-       const  {  apiKey,  partnerUrl ,  privateKeyB64 }  =  initOptions 
585+       const  {  apiKey,  apiUrl ,  privateKeyB64 }  =  initOptions 
586586
587587      let  partnerUserId : string 
588588      if  ( pluginConfig . store  !=  null )  { 
@@ -599,7 +599,7 @@ export const paybisRampPlugin: RampPluginFactory = (
599599
600600      state  =  { 
601601        apiKey, 
602-         partnerUrl , 
602+         apiUrl , 
603603        privateKeyB64, 
604604        partnerUserId
605605      } 
@@ -754,7 +754,7 @@ export const paybisRampPlugin: RampPluginFactory = (
754754      try  { 
755755        const  response  =  await  paybisFetch ( { 
756756          method : 'GET' , 
757-           url : state . partnerUrl , 
757+           url : state . apiUrl , 
758758          path : `v2/public/user/${ state . partnerUserId }  /status` , 
759759          apiKey : state . apiKey 
760760        } ) 
@@ -875,7 +875,7 @@ export const paybisRampPlugin: RampPluginFactory = (
875875
876876          const  response  =  await  paybisFetch ( { 
877877            method : 'POST' , 
878-             url : state . partnerUrl , 
878+             url : state . apiUrl , 
879879            path : 'v2/public/quote' , 
880880            apiKey : state . apiKey , 
881881            bodyParams, 
@@ -1005,7 +1005,7 @@ export const paybisRampPlugin: RampPluginFactory = (
10051005              const  privateKey  =  atob ( state ! . privateKeyB64 ) 
10061006              const  promise  =  paybisFetch ( { 
10071007                method : 'POST' , 
1008-                 url : state ! . partnerUrl , 
1008+                 url : state ! . apiUrl , 
10091009                path : 'v2/public/request' , 
10101010                apiKey : state ! . apiKey , 
10111011                bodyParams, 
@@ -1137,7 +1137,7 @@ export const paybisRampPlugin: RampPluginFactory = (
11371137                    try  { 
11381138                      const  payDetails  =  await  paybisFetch ( { 
11391139                        method : 'GET' , 
1140-                         url : state ! . partnerUrl , 
1140+                         url : state ! . apiUrl , 
11411141                        path : `v2/request/${ requestId }  /payment-details` , 
11421142                        apiKey : state ! . apiKey , 
11431143                        promoCode
0 commit comments