... | ... | @@ -34,4 +34,24 @@ page_layout: landscape |
|
|
|
|
|
![Screenshot_2020-01-20_at_15.22.24](uploads/d5f674fcbb8916686b3921ff77a2df96/Screenshot_2020-01-20_at_15.22.24.png)
|
|
|
|
|
|
![Screenshot_2020-01-20_at_15.22.44](uploads/5ff51b8f01a6a1b3c90a4aa40dd730da/Screenshot_2020-01-20_at_15.22.44.png) |
|
|
\ No newline at end of file |
|
|
![Screenshot_2020-01-20_at_15.22.44](uploads/5ff51b8f01a6a1b3c90a4aa40dd730da/Screenshot_2020-01-20_at_15.22.44.png)
|
|
|
|
|
|
Вы можете организовать выдачу сертификатов [через интеграционное API](https://reg.place/pages/docs/integration), сертификат, по своей сути является специальным видом заявки, при оформлении заявки на сертификат добавьте поле `custom_amount` и `tags`. Опцию «Custom amount» нужно предварительно включить в соревновании. Пример структуры, которую нужно передать в качестве тела заявки:
|
|
|
|
|
|
```ruby
|
|
|
heat = {
|
|
|
race_id: race.id,
|
|
|
token: race.event.company.token,
|
|
|
amount: race.fee.base_amount.to_f, # стоимость заявки.
|
|
|
custom_amount: true,
|
|
|
tags: ['gift', race.extra['tag']].join(', '), # тег gifts и тег, привязанный к соревнованиям
|
|
|
form_fields: {
|
|
|
'personal.name_last': current_user.athlete.name_last,
|
|
|
'personal.name_first': current_user.athlete.name_first,
|
|
|
'personal.birthday': current_user.athlete.birthday,
|
|
|
'personal.gender': current_user.athlete.gender,
|
|
|
'contacts.email': current_user.email,
|
|
|
'contacts.phone': current_user.athlete.phone
|
|
|
}
|
|
|
}
|
|
|
``` |
|
|
\ No newline at end of file |