Ayesha shirur

Generation

testsTue, 31 Jan 2023

public void processPayment(ConsumerPaymentRequest consumerPaymentRequest) throws PaymentServiceException, IOException { String userId = consumerPaymentRequest.getIdentity().getUserId(); log.info("Consumer Payment validation: {}", consumerPaymentRequest); PaymentRequest paymentRequest = populatePaymentRequest(consumerPaymentRequest); log.info("Payment Request JSON ::" + gson.toJson(paymentRequest)); //validate(consumerPaymentRequest); String payment_id = createPayment(paymentRequest); paymentRequest.setPaymentId(payment_id); log.info("Created payment wit payment id: {}", payment_id); for (MetaData contactDetail : consumerPaymentRequest.getContactDetailList()) { PaymentAuthCreateRequest paymentAuthCreateRequest = populatePaymentAuthCreateRequest(contactDetail, consumerPaymentRequest.getClaimData(), paymentRequest, consumerPaymentRequest.getRepairOrder()); String paId = paymentAuthorizationManagementService.createPaymentAuthorization(paymentAuthCreateRequest); consumerPaymentContactsRepository.save(createConsumerPaymentContactsRecord( contactDetail, userId, paId)); log.info("Created the Payment Auth Entity with paId: {}", paId); ConsumerPaymentMobileRequest consumerPaymentMobileRequest = new ConsumerPaymentMobileRequest(consumerPaymentRequest.getClaimData(), contactDetail, consumerPaymentRequest.getRepairOrder(), payment_id); mobileAppNotifyHelper.invokePushNotification(consumerPaymentMobileRequest, paId, SEND); }

### Embedding code snippets It is possible to embed code snippets into the documentation. Given the following code snippet:

Questions about programming?Chat with your personal AI assistant