package Ġcom . ba ul supp . ok url . services . paypal Ċ Ċ import Ġcom . ba ul supp . ok url . completion . Api Comp leter Ċ import Ġcom . ba ul supp . ok url . completion . BaseUrl Comp leter Ċ import Ġcom . ba ul supp . ok url . completion . Completion Variable Cache Ċ import Ġcom . ba ul supp . ok url . completion . Url List Ċ import Ġcom . ba ul supp . ok url . credentials . Credentials Store Ċ import Ġcom . ba ul supp . ok url . credentials . Token Ċ import Ġokhttp 3 . Ok HttpClient Ċ Ċ class ĠPay pal Sandbox Auth Interceptor Ġ: ĠPay pal Auth Interceptor () Ġ{ ĊĠ Ġoverride Ġfun Ġshort Name (): ĠString Ġ= Ġ" paypal - sandbox " ĊĊĠ Ġoverride Ġfun Ġhost (): ĠString Ġ= Ġ" api . sandbox . paypal . com " ĊĊĠ Ġoverride Ġsuspend Ġfun Ġapi Comp leter ( ĊĠĠĠ Ġprefix : ĠString , ĊĠĠĠ Ġclient : ĠOk HttpClient , ĊĠĠĠ Ġcredentials Store : ĠCredentials Store , ĊĠĠĠ Ġcompletion Variable Cache : ĠCompletion Variable Cache , ĊĠĠĠ Ġtoken Set : ĠToken ĊĠ Ġ): ĠApi Comp leter Ġ{ ĊĠĠĠ Ġval Ġtest Urls Ġ= ĠUrl List . from Resource (" paypal ") !!. get Urls ("") ĊĠĠĠĠĠ Ġ. map Ġ{ Ġs Ġ-> Ġs . replace (" api . paypal . com ", Ġhost ()) Ġ} ĊĊĠĠĠ Ġreturn ĠBase Url Comp leter ( Url List ( Url List . Match . SITE , Ġtest Urls ), Ġhosts ( credentials Store ), Ġcompletion Variable Cache ) ĊĠ Ġ} Ċ } Ċ