Histórico de mensagens sobre App

EXIBINDO CONVERSAS RECENTES:

Texto: App
Data: 12/09/2024
# cartões
Avatar discord do usuario leandroberg

leandroberg

Ver Respostas

Boa tarde tudo bem com todos? Poderiam analisar esse try / catch da requisição à API de cartão de crédito e me dizer se está correto por gentileza, se possível me enviar exemplos do tratamento pós-request para que eu possa corrigir meu código em caso de problemas, muito obrigado, segue o código:

try {
$api = new Gerencianet($options);
$response = $api->createOneStepCharge($params = [], $body);
$response_array = json_decode($response, true);


if (json_last_error() === JSON_ERROR_NONE) {

$status = isset($response_array['data']['status']) ? $response_array['data']['status'] : '';

if ($status === 'approved') {

updateOrderDetails($order_id, $_POST['customerName']);

return [
'result' => 'success',
'redirect' => $this->get_return_url(wc_get_order($order_id))
];

} else {

return [
'result' => 'failure',
'message' => 'Payment status is not approved. Current status: ' . $status
];
}

} else {

return [
'result' => 'failure',
'message' => 'Error decoding JSON: ' . json_last_error_msg()
];

}
} catch (GerencianetException $e) {

return [
'result' => 'failure',
'message' => 'Gerencianet Error - Code: ' . $e->code . ', Error: ' . $e->error . ', Description: ' . $e->errorDescription
];

} catch (Exception $e) {

return [
'result' => 'failure',
'message' => 'General Error: ' . $e->getMessage()
];

}

# devs
Avatar discord do usuario rubenskuhl

rubenskuhl

Ver Respostas

Apply é em Inglês, em Português é candidatura. 🤓

# freelancer
Avatar discord do usuario tobib8332

tobib8332

[FOR HIRE] I am a highly skilled and experienced Freelance Full-Stack / Backend Developer currently seeking new opportunities!

🌻 My Skills & Expertise:
Frontend: UI/UX design, React, Vue, Tailwind css, Bootstrap, React Native & Figma design
Backend: Node, PHP & PHP framework, Python ( Fast API / Flask )
AI Engine: OpenAI Codex, Azure OpenAI, GPT-4, Langchain
Web3: Smart contract, Web3.js, Rust(Solana), ERC20 & ERC721 & ERC1155

🎓 My Experience:
- Developed scalable web applications and RESTful APIs
- Built secure and efficient smart contracts for various blockchain projects
- Integrated Web3 features into existing applications
- Contributed to open-source projects related to blockchain technology

🏅 My CV
My portfolio : https://tobi-studio.vercel.app/
Figma: https://figma.com/@tobistudio

I'm excited to hear about your projects and contribute to your success!
Let's build amazing things together!

# freelancer
Avatar discord do usuario aozora_d

aozora_d

Hello everyone, everything good?
I am an experienced web developer with a passion for creating visually stunning and highly functional websites and web applications.
I've been working as a Full stack Developer for over 5 years.

I am an extremely skilled professional in developing websites and web applications, focusing on the user experience and also on the responsiveness of my projects.

[UI/UX, Javascript, React, Next.js, NodeJS, NestJS, Python/Django, AI chatbot integration, AI assets(audio, image...) generate].

https://www.aozora-developer.com/

I am available to work on project and ready to discuss further.
Thanks.

# devs
Avatar discord do usuario wilianmaique

wilianmaique

Ver Respostas

ent, é uma aplicação meio 'pessoal', eu queria enviar pagamentos para pessoas, em vez de ter q ficar entrando no APP de X banco e enviar sacas ?