Skip to content

Commit 12cb402

Browse files
fix: payment create
1 parent e724cdc commit 12cb402

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

database/01_tabelas.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ alter table password_recovery
217217
create table payments
218218
(
219219
amount numeric(38, 2) not null,
220-
approval_date timestamp(6) not null,
220+
approval_date timestamp(6),
221221
created_at timestamp(6) not null,
222222
id bigserial not null,
223223
order_id bigint not null,

infrastructure/src/main/java/br/com/ifsp/tickets/infra/contexts/financial/order/PaymentURLGenerator.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ public String generateURL(Order order) {
6767
.expires(true)
6868
.dateOfExpiration(expirationTime)
6969
.items(items)
70+
.backUrls(
71+
PreferenceBackUrlsRequest.builder()
72+
.success("https://eventos.gremioifspcbt.shop/user/account")
73+
.build()
74+
)
7075
.payer(
7176
PreferencePayerRequest.builder()
7277
.name(name)

0 commit comments

Comments
 (0)