Skip to content

Commit 74090f6

Browse files
pixincreatehyperswitch-bot[bot]deepanshu-iiitu
authored
chore: update production endpoint url for globalPay (#7588)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: DEEPANSHU BANSAL <[email protected]>
1 parent 1c3f057 commit 74090f6

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

config/deployments/production.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fiuu.secondary_base_url="https://api.merchant.razer.com/"
6464
fiuu.third_base_url="https://api.merchant.razer.com/"
6565
forte.base_url = "https://sandbox.forte.net/api/v3"
6666
getnet.base_url = "https://api.getneteurope.com/engine/rest"
67-
globalpay.base_url = "https://apis.sandbox.globalpay.com/ucp/"
67+
globalpay.base_url = "https://apis.globalpay.com/ucp/"
6868
globepay.base_url = "https://pay.globepay.co/"
6969
gocardless.base_url = "https://api.gocardless.com"
7070
gpayments.base_url = "https://{{merchant_endpoint_prefix}}-test.api.as1.gpayments.net"

crates/hyperswitch_connectors/src/connectors/globalpay.rs

+10-1
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,10 @@ impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Gl
482482
.response
483483
.parse_struct("Globalpay PaymentsResponse")
484484
.change_context(errors::ConnectorError::ResponseDeserializationFailed)?;
485+
485486
event_builder.map(|i| i.set_response_body(&response));
486487
router_env::logger::info!(connector_response=?response);
488+
487489
RouterData::try_from(ResponseRouterData {
488490
response,
489491
data: data.clone(),
@@ -561,7 +563,7 @@ impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Glo
561563
) -> CustomResult<PaymentsSyncRouterData, errors::ConnectorError> {
562564
let response: GlobalpayPaymentsResponse = res
563565
.response
564-
.parse_struct("globalpay PaymentsResponse")
566+
.parse_struct("Globalpay PaymentsResponse")
565567
.change_context(errors::ConnectorError::ResponseDeserializationFailed)?;
566568

567569
event_builder.map(|i| i.set_response_body(&response));
@@ -581,6 +583,7 @@ impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Glo
581583
))
582584
.change_context(errors::ConnectorError::ResponseHandlingFailed)
583585
}
586+
584587
fn get_multiple_capture_sync_method(
585588
&self,
586589
) -> CustomResult<CaptureSyncMethod, errors::ConnectorError> {
@@ -658,8 +661,10 @@ impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> fo
658661
.response
659662
.parse_struct("Globalpay PaymentsResponse")
660663
.change_context(errors::ConnectorError::ResponseDeserializationFailed)?;
664+
661665
event_builder.map(|i| i.set_response_body(&response));
662666
router_env::logger::info!(connector_response=?response);
667+
663668
RouterData::try_from(ResponseRouterData {
664669
response,
665670
data: data.clone(),
@@ -748,8 +753,10 @@ impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData
748753
.response
749754
.parse_struct("Globalpay PaymentsResponse")
750755
.change_context(errors::ConnectorError::ResponseDeserializationFailed)?;
756+
751757
event_builder.map(|i| i.set_response_body(&response));
752758
router_env::logger::info!(connector_response=?response);
759+
753760
RouterData::try_from(ResponseRouterData {
754761
response,
755762
data: data.clone(),
@@ -909,8 +916,10 @@ impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Globalpay
909916
.response
910917
.parse_struct("globalpay RefundResponse")
911918
.change_context(errors::ConnectorError::ResponseDeserializationFailed)?;
919+
912920
event_builder.map(|i| i.set_response_body(&response));
913921
router_env::logger::info!(connector_response=?response);
922+
914923
RouterData::try_from(ResponseRouterData {
915924
response,
916925
data: data.clone(),

0 commit comments

Comments
 (0)